diff options
author | Friedemann Kleint <[email protected]> | 2025-06-12 09:16:08 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2025-06-12 10:23:48 +0200 |
commit | 69bb49860db2b52899f7599618479277eba79810 (patch) | |
tree | 8645e973bbc183814c506c4af96a317934d5229e | |
parent | 93baaa8c98d7bd6e170e894b1854c99585d58b20 (diff) |
Fix wrong forward declaration of AutoDecRef
It is actually a struct.
Pick-to: 6.9 6.8
Change-Id: I06b5641c068125c418026ed82708b9704431206a
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
-rw-r--r-- | sources/shiboken6/generator/shiboken/headergenerator.cpp | 2 | ||||
-rw-r--r-- | sources/shiboken6/libshiboken/sbkbindingutils.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/generator/shiboken/headergenerator.cpp b/sources/shiboken6/generator/shiboken/headergenerator.cpp index 7616fa5c3..8c8f72241 100644 --- a/sources/shiboken6/generator/shiboken/headergenerator.cpp +++ b/sources/shiboken6/generator/shiboken/headergenerator.cpp @@ -187,7 +187,7 @@ void HeaderGenerator::writeWrapperClass(TextStream &s, } s << "#include <sbkpython.h>\n\n#include <array>\n"; - s << "namespace Shiboken { class AutoDecRef; class GilState; }\n\n"; + s << "namespace Shiboken { struct AutoDecRef; class GilState; }\n\n"; if (usePySideExtensions() && isQObject(metaClass)) s << "namespace PySide { class DynamicQMetaObject; }\n\n"; diff --git a/sources/shiboken6/libshiboken/sbkbindingutils.h b/sources/shiboken6/libshiboken/sbkbindingutils.h index e40089ed2..4ed833dfa 100644 --- a/sources/shiboken6/libshiboken/sbkbindingutils.h +++ b/sources/shiboken6/libshiboken/sbkbindingutils.h @@ -8,7 +8,7 @@ #include "shibokenmacros.h" namespace Shiboken { -class AutoDecRef; +struct AutoDecRef; /// Maps a keyword argument by name to its parameter index struct ArgumentNameIndexMapping |