diff options
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r-- | cppgenerator.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp index 6b7fe9e88..28d23f98c 100644 --- a/cppgenerator.cpp +++ b/cppgenerator.cpp @@ -1355,9 +1355,16 @@ void CppGenerator::writeErrorSection(QTextStream& s, OverloadData& overloadData) const PrimitiveTypeEntry* ptp = reinterpret_cast<const PrimitiveTypeEntry*>(argType->typeEntry()); while (ptp->aliasedTypeEntry()) ptp = ptp->aliasedTypeEntry(); - strArg = ptp->name().replace(QRegExp("^signed\\s+"), ""); - if (strArg == "double") - strArg = "float"; + + if (strArg == "QString") { + strArg = "unicode"; + } else if (strArg == "QChar") { + strArg = "1-unicode"; + } else { + strArg = ptp->name().replace(QRegExp("^signed\\s+"), ""); + if (strArg == "double") + strArg = "float"; + } } else if (argType->typeEntry()->isContainer()) { strArg = argType->fullName(); if (strArg == "QList" || strArg == "QVector" |