aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r--abstractmetabuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index 9b36447d0..e3fd33a05 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -1869,7 +1869,6 @@ AbstractMetaFunction* AbstractMetaBuilder::traverseFunction(FunctionModelItem fu
AbstractMetaType* AbstractMetaBuilder::translateType(double vr, const AddedFunction::TypeInfo& typeInfo)
{
Q_ASSERT(!typeInfo.name.isEmpty());
- AbstractMetaType* metaType = createMetaType();
TypeDatabase* typeDb = TypeDatabase::instance();
TypeEntry* type;
@@ -1882,6 +1881,7 @@ AbstractMetaType* AbstractMetaBuilder::translateType(double vr, const AddedFunct
typeDb->addType(type);
}
+ AbstractMetaType* metaType = createMetaType();
metaType->setTypeEntry(type);
metaType->setIndirections(typeInfo.indirections);
metaType->setReference(typeInfo.isReference);