summaryrefslogtreecommitdiffstats
path: root/generator/cppgenerator.cpp
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-01-19 09:38:17 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-01-19 11:30:05 -0300
commitcde05a92336a9f5fee1d8d1f591c89dd1ee70328 (patch)
tree4aaabb700690a09b0850d6fed3dc69aec56fe6f1 /generator/cppgenerator.cpp
parent99760ad3ed66e619e04defcdfe05710899c7afc9 (diff)
downloadshiboken-cde05a92336a9f5fee1d8d1f591c89dd1ee70328.tar.gz
shiboken-cde05a92336a9f5fee1d8d1f591c89dd1ee70328.tar.xz
shiboken-cde05a92336a9f5fee1d8d1f591c89dd1ee70328.zip
Fix windows compilation.
Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
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 28ab0b71..c249eb21 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -2721,8 +2721,7 @@ void CppGenerator::writeGetterFunction(QTextStream& s, const AbstractMetaField*
#ifdef AVOID_PROTECTED_HACK
if (metaField->isProtected())
- cppField = QString("(%1(%2*)%3)->%4()")
- .arg(useReference ? '&' : ' ')
+ cppField = QString("((%1*)%2)->%3()")
.arg(wrapperName(metaField->enclosingClass()))
.arg(cpythonWrapperCPtr(metaField->enclosingClass(), "self"))
.arg(protectedFieldGetterName(metaField));