summaryrefslogtreecommitdiffstats
path: root/generator/shibokengenerator.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/shibokengenerator.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/shibokengenerator.cpp')
-rw-r--r--generator/shibokengenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/shibokengenerator.cpp b/generator/shibokengenerator.cpp
index aafa3c50..b93009e5 100644
--- a/generator/shibokengenerator.cpp
+++ b/generator/shibokengenerator.cpp
@@ -1208,7 +1208,7 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s,
if (arg->type()->typeEntry()->isCustom()) {
argReplacement = usePyArgs ? QString("pyargs[%1]").arg(i - removed) : "arg";
} else {
- argReplacement = QString("cpp_arg%1").arg(i - removed);
+ argReplacement = QString(CPP_ARG"%1").arg(i - removed);
}
}
} else {
@@ -1233,7 +1233,7 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s,
if (lastArg && arg->argumentIndex() > lastArg->argumentIndex()) {
argName = arg->defaultValueExpression();
} else {
- argName = QString("cpp_arg%1").arg(arg->argumentIndex() - removed);
+ argName = QString(CPP_ARG"%1").arg(arg->argumentIndex() - removed);
}
argumentNames << argName;
} else {