aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sources/shiboken6/generator/shiboken/cppgenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/generator/shiboken/cppgenerator.cpp b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
index 05afde69f..35a9d1842 100644
--- a/sources/shiboken6/generator/shiboken/cppgenerator.cpp
+++ b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
@@ -5494,7 +5494,7 @@ void CppGenerator::writeClassRegister(TextStream &s,
if (metaClass->baseClassNames().size() > 1)
s << pyTypeBasesVariable << ',' << '\n';
else
- s << "0,\n";
+ s << "nullptr,\n";
// 8:wrapperflags
QByteArrayList wrapperFlags;
@@ -5750,7 +5750,7 @@ void CppGenerator::writeTypeDiscoveryFunction(TextStream &s,
if (!polymorphicExpr.isEmpty()) {
replacePolymorphicIdPlaceHolders(metaClass, &polymorphicExpr);
- s << " if (" << polymorphicExpr << ")\n" << indent
+ s << "if (" << polymorphicExpr << ")\n" << indent
<< "return cptr;\n" << outdent;
} else if (metaClass->isPolymorphic()) {
const auto &ancestors = metaClass->allTypeSystemAncestors();