summaryrefslogtreecommitdiffstats
path: root/cppgenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r--cppgenerator.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index 13ae0932..6612a7e5 100644
--- a/cppgenerator.cpp
+++ b/cppgenerator.cpp
@@ -976,8 +976,11 @@ void CppGenerator::writeErrorSection(QTextStream& s, OverloadData& overloadData)
else
funcName = rfunc->name();
if (rfunc->ownerClass()) {
- funcName.prepend('.');
- funcName.prepend(rfunc->ownerClass()->fullName());
+ QString fullName = rfunc->ownerClass()->fullName();
+ if (rfunc->isConstructor())
+ funcName = fullName;
+ else
+ funcName.prepend(fullName + '.');
}
QString argsVar = !rfunc->isConstructor() && overloadData.maxArgs() == 1 ? "arg" : "args";