diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-10-28 15:00:59 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:08:54 -0300 |
commit | a35c7951659fb973460a9f96eea5c5ea63fea8fc (patch) | |
tree | f0bff3319ccb4ecefcee8c7e4843124f938224a6 /generator/shibokengenerator.cpp | |
parent | b8b6a8b0316668a8af08b651537747ede08e0c96 (diff) |
Uses a constant to define the cpp_arg variable, now called cppArg.
Diffstat (limited to 'generator/shibokengenerator.cpp')
-rw-r--r-- | generator/shibokengenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/shibokengenerator.cpp b/generator/shibokengenerator.cpp index aafa3c50c..b93009e5e 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 { |