summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-07-08 16:30:32 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-07-08 16:30:32 -0300
commit0e2f7543d283f37cd5c47028b663b415572f576f (patch)
tree5cd6629f5bfc16bd093536346703b5e17ad4d494
parentaa333111a036873d2942fa949901d5634c5f44a7 (diff)
downloadgeneratorrunner-0e2f7543d283f37cd5c47028b663b415572f576f.tar.gz
generatorrunner-0e2f7543d283f37cd5c47028b663b415572f576f.tar.xz
generatorrunner-0e2f7543d283f37cd5c47028b663b415572f576f.zip
Adapt to recent changes in ApiExtractor API.
-rw-r--r--generator.cpp2
-rw-r--r--generators/qtdoc/qtdocgenerator.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/generator.cpp b/generator.cpp
index d5d1b64..4703924 100644
--- a/generator.cpp
+++ b/generator.cpp
@@ -224,7 +224,7 @@ void Generator::replaceTemplateVariables(QString &code, const AbstractMetaFuncti
code.replace("%TYPE", cpp_class->name());
foreach (AbstractMetaArgument *arg, func->arguments())
- code.replace("%" + QString::number(arg->argumentIndex() + 1), arg->argumentName());
+ code.replace("%" + QString::number(arg->argumentIndex() + 1), arg->name());
//template values
code.replace("%RETURN_TYPE", translateType(func->type(), cpp_class));
diff --git a/generators/qtdoc/qtdocgenerator.cpp b/generators/qtdoc/qtdocgenerator.cpp
index 47ab854..4b5e9d4 100644
--- a/generators/qtdoc/qtdocgenerator.cpp
+++ b/generators/qtdoc/qtdocgenerator.cpp
@@ -1085,8 +1085,8 @@ void QtDocGenerator::writeConstructors(QTextStream &s, const AbstractMetaClass *
writeFunction(s, false, cppClass, func);
foreach(AbstractMetaArgument *arg, func->arguments())
{
- if (!arg_map.contains(arg->argumentName())) {
- arg_map.insert(arg->argumentName(), arg);
+ if (!arg_map.contains(arg->name())) {
+ arg_map.insert(arg->name(), arg);
}
}
}
@@ -1123,7 +1123,7 @@ QString QtDocGenerator::parseArgDocStyle(const AbstractMetaClass *cppClass, cons
optional = true;
}
- ret += arg->argumentName();
+ ret += arg->name();
if (optional)
ret += "=" + arg->defaultValueExpression();
@@ -1290,7 +1290,7 @@ QString QtDocGenerator::translateToPythonType(const AbstractMetaType *type, cons
void QtDocGenerator::writeParamerteType(QTextStream &s, const AbstractMetaClass *cppClass, const AbstractMetaArgument *arg)
{
- s << INDENT << ":param " << arg->argumentName() << ": "
+ s << INDENT << ":param " << arg->name() << ": "
<< translateToPythonType(arg->type(), cppClass) << endl;
}