diff options
Diffstat (limited to 'src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp')
-rw-r--r-- | src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp b/src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp index 7c84817c99..a0d9fd3f0c 100644 --- a/src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp +++ b/src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp @@ -1300,8 +1300,8 @@ void generateASTVisitor_H(const Snapshot &, const QDir &cplusplusDir, "\n" " void accept(AST *ast);\n" "\n" -" template <typename _Tp>\n" -" void accept(List<_Tp> *it)\n" +" template <typename Tptr>\n" +" void accept(List<Tptr> *it)\n" " {\n" " for (; it; it = it->next)\n" " accept(it->value);\n" @@ -1659,15 +1659,15 @@ void generateASTPatternBuilder_h(const QDir &cplusplusDir) out << ")" << endl << " {" << endl - << " " << className << " *__ast = new (&pool) " << className << ';' << endl; + << " " << className << " *ast = new (&pool) " << className << ';' << endl; foreach (const StringPair &p, args) { - out << " __ast->" << p.second << " = " << p.second << ';' << endl; + out << " ast->" << p.second << " = " << p.second << ';' << endl; } out - << " return __ast;" << endl + << " return ast;" << endl << " }" << endl << endl; } @@ -1681,10 +1681,10 @@ void generateASTPatternBuilder_h(const QDir &cplusplusDir) << " " << className << " *" << methodName << "(" << elementName << " *value, " << className << " *next = 0)" << endl << " {" << endl - << " " << className << " *__list = new (&pool) " << className << ";" << endl - << " __list->next = next;" << endl - << " __list->value = value;" << endl - << " return __list;" << endl + << " " << className << " *list = new (&pool) " << className << ";" << endl + << " list->next = next;" << endl + << " list->value = value;" << endl + << " return list;" << endl << " }" << endl << endl; } |