aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpysideqml/pysideqmlforeign.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-12-15 14:32:29 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-12-16 15:05:20 +0100
commitfc40a3b5c0914358e627125b4d41eee6ff28b61f (patch)
treea47587350772f4bf6ad465419d6b6d68a67376c9 /sources/pyside6/libpysideqml/pysideqmlforeign.cpp
parentb6d8b5f77f5721d8b43c9d7b14f0c2aa15a519a0 (diff)
PySide6: Fix CMake UNITY_BUILD (jumbo) builds of the libraries
Prevent clashes of the slots keyword and rename duplicated static variables. Task-number: PYSIDE-2155 Change-Id: I68fd004a595d7ed21f23c71d6635441aba85fd60 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/libpysideqml/pysideqmlforeign.cpp')
-rw-r--r--sources/pyside6/libpysideqml/pysideqmlforeign.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/libpysideqml/pysideqmlforeign.cpp b/sources/pyside6/libpysideqml/pysideqmlforeign.cpp
index 67aea1756..f9cc4f44d 100644
--- a/sources/pyside6/libpysideqml/pysideqmlforeign.cpp
+++ b/sources/pyside6/libpysideqml/pysideqmlforeign.cpp
@@ -73,7 +73,7 @@ PyTypeObject *PySideQmlForeign_TypeF(void)
} // extern "C"
-static const char *qmlAttached_SignatureStrings[] = {
+static const char *qmlForeign_SignatureStrings[] = {
"PySide6.QtQml.QmlForeign(self,type:type)",
nullptr // Sentinel
};
@@ -82,7 +82,7 @@ namespace PySide::Qml {
void initQmlForeign(PyObject *module)
{
- if (InitSignatureStrings(PySideQmlForeign_TypeF(), qmlAttached_SignatureStrings) < 0)
+ if (InitSignatureStrings(PySideQmlForeign_TypeF(), qmlForeign_SignatureStrings) < 0)
return;
Py_INCREF(PySideQmlForeign_TypeF());