aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/generator/shiboken/headergenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/generator/shiboken/headergenerator.cpp')
-rw-r--r--sources/shiboken6/generator/shiboken/headergenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/generator/shiboken/headergenerator.cpp b/sources/shiboken6/generator/shiboken/headergenerator.cpp
index 31d22fcba..8513a8e89 100644
--- a/sources/shiboken6/generator/shiboken/headergenerator.cpp
+++ b/sources/shiboken6/generator/shiboken/headergenerator.cpp
@@ -164,7 +164,7 @@ void HeaderGenerator::generateClass(TextStream &s, const GeneratorContext &class
s << '~' << wrapperName << "();\n";
}
- writeClassCodeSnips(s, metaClass->typeEntry()->codeSnips(),
+ writeClassCodeSnips(s, typeEntry->codeSnips(),
TypeSystem::CodeSnipPositionDeclaration, TypeSystem::NativeCode,
classContext);
@@ -388,7 +388,7 @@ void HeaderGenerator::writeTypeIndexValueLines(TextStream &s, const ApiExtractor
writeTypeIndexValueLine(s, api, metaEnum.typeEntry());
}
if (NamespaceTypeEntry::isVisibleScope(typeEntry))
- writeTypeIndexValueLine(s, api, metaClass->typeEntry());
+ writeTypeIndexValueLine(s, api, typeEntry);
}
// Format the typedefs for the typedef entries to be generated