diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-08-28 15:20:30 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-08-30 11:45:15 +0200 |
commit | e39a383766aa1c73e94d948d6e3a3bd20729f19b (patch) | |
tree | a77bbab4b9124ed23e7d6795cca8665766707684 /sources/pyside6/libpyside/dynamicqmetaobject.cpp | |
parent | f21dd80f7cab5ce6510336be3362166610d6932c (diff) |
libpyside: Use a static string for the slot attribute attached to methods
Task-number: PYSIDE-748
Change-Id: Ieeeb2c1c392706a5c74bf29ff67ff4ddd8c4feaa
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/dynamicqmetaobject.cpp')
-rw-r--r-- | sources/pyside6/libpyside/dynamicqmetaobject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside6/libpyside/dynamicqmetaobject.cpp b/sources/pyside6/libpyside/dynamicqmetaobject.cpp index a3a16b6a0..5a4c339b2 100644 --- a/sources/pyside6/libpyside/dynamicqmetaobject.cpp +++ b/sources/pyside6/libpyside/dynamicqmetaobject.cpp @@ -10,6 +10,7 @@ #include "pysideslot_p.h" #include "pysideqenum.h" #include "pyside_p.h" +#include "pysidestaticstrings.h" #include <shiboken.h> @@ -608,7 +609,7 @@ void MetaObjectBuilderPrivate::parsePythonType(PyTypeObject *type) } } - AutoDecRef slotAttrName(String::fromCString(PYSIDE_SLOT_LIST_ATTR)); + PyObject *slotAttrName = PySide::PySideMagicName::slot_list_attr(); // PYSIDE-315: Now take care of the rest. // Signals and slots should be separated, unless the types are modified, later. // We check for this using "is_sorted()". Sorting no longer happens at all. |