diff options
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r-- | abstractmetabuilder.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp index 72f7ab91d..45ceab872 100644 --- a/abstractmetabuilder.cpp +++ b/abstractmetabuilder.cpp @@ -1334,6 +1334,11 @@ void AbstractMetaBuilder::fixReturnTypeOfConversionOperator(AbstractMetaFunction TypeDatabase* types = TypeDatabase::instance(); QString castTo = metaFunction->name().remove(QRegExp("^operator ")).trimmed(); + if (castTo.endsWith('&')) + castTo.chop(1); + if (castTo.startsWith("const ")) + castTo.remove(0, 6); + TypeEntry* retType = types->findType(castTo); if (!retType) return; |