diff options
author | Christian Tismer <tismer@stackless.com> | 2021-09-30 12:19:55 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2021-10-01 15:50:37 +0200 |
commit | beeaba127a0ecbae4fb0f97dda153dd44324389e (patch) | |
tree | eabc0cc1a042b5bf2e91d086c99bed0e5abd5b4b | |
parent | 0aa413c4a3c303c0fc4a26f0fa2669969987dfc1 (diff) |
Shiboken: avoid an unused function warning
Change-Id: Iaa4454568d10c8f1e82c1f02d5bc128273e8dff6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 0c66bde5c8c0836ac657fb1f80d1a3bf39458d9a)
-rw-r--r-- | sources/shiboken6/generator/shiboken/cppgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/generator/shiboken/cppgenerator.cpp b/sources/shiboken6/generator/shiboken/cppgenerator.cpp index c7fa2126a..e1c6eda73 100644 --- a/sources/shiboken6/generator/shiboken/cppgenerator.cpp +++ b/sources/shiboken6/generator/shiboken/cppgenerator.cpp @@ -5633,7 +5633,7 @@ void CppGenerator::writeClassRegister(TextStream &s, else s << wrapperFlags.join(" | "); } - s << ");\nauto pyType = reinterpret_cast<PyTypeObject *>(" << typePtr << ");\n" + s << ");\nauto *pyType = " << pyTypeName << "; // references " << typePtr << "\n" << "InitSignatureStrings(pyType, " << initFunctionName << "_SignatureStrings);\n"; if (usePySideExtensions()) |