summaryrefslogtreecommitdiffstats
path: root/generator/cppgenerator.cpp
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-23 15:03:46 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-23 15:04:08 -0300
commitcecb22759c6144c9e28921a18cb5255db9771e28 (patch)
tree81ea8f1f1a9b9cc674a5eb1ff89e8a5688669b9c /generator/cppgenerator.cpp
parent521cf2b6190a89ecaf19fff925c75bb47b72fa49 (diff)
downloadshiboken-cecb22759c6144c9e28921a18cb5255db9771e28.tar.gz
shiboken-cecb22759c6144c9e28921a18cb5255db9771e28.tar.xz
shiboken-cecb22759c6144c9e28921a18cb5255db9771e28.zip
Fixed generation with use of protect hack.
Diffstat (limited to 'generator/cppgenerator.cpp')
-rw-r--r--generator/cppgenerator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index fa8b2cc2..f4a4918e 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
{