aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/generator/shiboken/headergenerator.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-03-18 14:01:57 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-03-20 17:19:41 +0100
commit539b13ca6f5e826791d9759047a6b385a73627c8 (patch)
tree47f3c2f9b0ae8bdbfcdf66cb3c1560834a21a164 /sources/shiboken6/generator/shiboken/headergenerator.cpp
parent75e1dbcda995027b16a2c612bacd5dfb938efc4d (diff)
shiboken6: Introduce variables for class type entries
Introduce variables to avoid calling metaClass->typeEntry() repeatedly or move existing variables up. Task-number: PYSIDE-454 Change-Id: Ia6b696484f02fa74e30aa1413671810aa8188060 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
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