diff options
Diffstat (limited to 'sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp b/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp index 6a40fe580..b4787ec9c 100644 --- a/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp +++ b/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp @@ -2740,13 +2740,14 @@ void AbstractMetaBuilderPrivate::inheritTemplateFunctions(AbstractMetaClass *sub } const auto &templateTypes = subclass->templateBaseClassInstantiations(); - const AbstractMetaFunctionList &subclassFuncs = subclass->functions(); + const AbstractMetaFunctionList existingSubclassFuncs = + subclass->functions(); // Take copy const AbstractMetaFunctionList &templateClassFunctions = templateClass->functions(); for (const AbstractMetaFunction *function : templateClassFunctions) { // If the function is modified or the instantiation has an equally named // function we have shadowing, so we need to skip it. if (function->isModifiedRemoved(TypeSystem::All) - || AbstractMetaFunction::find(subclassFuncs, function->name()) != nullptr) { + || AbstractMetaFunction::find(existingSubclassFuncs, function->name()) != nullptr) { continue; } |
