aboutsummaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-23 15:03:46 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:12:06 -0300
commit152653a520eeaf534a0488810a165f0a7df4d434 (patch)
tree88d3bb66f6d1529145cab9e3ffd64ea1b15a81db /generator
parent0cd491e63633d33d70e5453c10e60258947340e3 (diff)
Fixed generation with use of protect hack.
Diffstat (limited to 'generator')
-rw-r--r--generator/cppgenerator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index 14a6deba4..07ef83713 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -2025,7 +2025,6 @@ void CppGenerator::writeMethodCall(QTextStream& s, const AbstractMetaFunction* f
if (!func->isAbstract() && func->isVirtual())
mc << "::%CLASS_NAME::";
-
mc << func->originalName();
#ifdef AVOID_PROTECTED_HACK
@@ -2044,7 +2043,7 @@ void CppGenerator::writeMethodCall(QTextStream& s, const AbstractMetaFunction* f
mc << '(' << userArgs.join(", ") << ')';
if (!func->isAbstract() && func->isVirtual()) {
mc.flush();
-#ifndef AVOID_PROTECTED_HACK
+#ifdef AVOID_PROTECTED_HACK
if (!func->isProtected())
#endif
{