aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2020-11-12 10:41:58 +0100
committerChristian Tismer <tismer@stackless.com>2020-11-12 09:53:57 +0000
commitd2ed3e7813b7fb731e4f6bda9207dba099b48494 (patch)
treee451972832155d13e18ea63a0ebb7595ee3e9473 /sources/pyside6/PySide6
parent8244930de265550ecafeff57d0d55dfceace3a79 (diff)
pyside6: Fix Limited API violation in QtQml
This patch replaces an unsupported function. No idea if there are more problems, since I have to create a new macOS build of the dev branch, first. Change-Id: I3ce59d5585410109a776cef19879ae835f6cce5d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6')
-rw-r--r--sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp2
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 : "";
}