summaryrefslogtreecommitdiffstats
path: root/generator/cppgenerator.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-10-28 15:00:59 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-10-28 15:12:05 -0200
commit6de649a4f272bb98048602738af511d102cd5209 (patch)
treee1d02f743e078cc3f94458f4d133e3b6c6058094 /generator/cppgenerator.cpp
parentaee6f385b5ffbed54df2e18ece072a7cc3281768 (diff)
downloadshiboken-6de649a4f272bb98048602738af511d102cd5209.tar.gz
shiboken-6de649a4f272bb98048602738af511d102cd5209.tar.xz
shiboken-6de649a4f272bb98048602738af511d102cd5209.zip
Uses a constant to define the cpp_arg variable, now called cppArg.
Diffstat (limited to 'generator/cppgenerator.cpp')
-rw-r--r--generator/cppgenerator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index 32ee06d8..77c75187 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -1738,7 +1738,7 @@ void CppGenerator::writeSingleFunctionCall(QTextStream& s, const OverloadData& o
argType = buildAbstractMetaTypeFromString(typeReplaced);
if (argType) {
- QString argName = QString("cpp_arg%1").arg(i - removedArgs);
+ QString argName = QString(CPP_ARG"%1").arg(i - removedArgs);
QString pyArgName = usePyArgs ? QString("pyargs[%1]").arg(i - removedArgs) : "arg";
QString defaultValue = guessScopeForDefaultValue(func, arg);
@@ -1930,7 +1930,7 @@ void CppGenerator::writeMethodCall(QTextStream& s, const AbstractMetaFunction* f
if (hasConversionRule) {
argName = arg->name() + "_out";
} else {
- argName = QString("cpp_arg%1").arg(idx);
+ argName = QString(CPP_ARG"%1").arg(idx);
}
userArgs << argName;
}
@@ -1980,7 +1980,7 @@ void CppGenerator::writeMethodCall(QTextStream& s, const AbstractMetaFunction* f
}
} else if (func->isOperatorOverload()) {
QString firstArg("(*" CPP_SELF_VAR ")");
- QString secondArg("cpp_arg0");
+ QString secondArg(CPP_ARG0);
if (!func->isUnaryOperator() && shouldDereferenceArgumentPointer(func->arguments().first())) {
secondArg.prepend('(');
secondArg.append(')');
@@ -2005,7 +2005,7 @@ void CppGenerator::writeMethodCall(QTextStream& s, const AbstractMetaFunction* f
QString className = wrapperName(func->ownerClass());
mc << "new " << className << '(';
if (func->isCopyConstructor() && maxArgs == 1) {
- mc << "cpp_arg0";
+ mc << CPP_ARG0;
} else {
mc << userArgs.join(", ");
}