diff options
Diffstat (limited to 'sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp')
-rw-r--r-- | sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp b/sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp index 0d4cea294..cb9ed6309 100644 --- a/sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp +++ b/sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp @@ -665,7 +665,7 @@ static std::string getGlobalString(const char *name) if (globalVar == nullptr || !PyUnicode_Check(globalVar)) return ""; - const char *stringValue = PyUnicode_AsUTF8(globalVar); + const char *stringValue = _PepUnicode_AsString(globalVar); return stringValue != nullptr ? stringValue : ""; } |