From 774fa4941284f8b9257f9659c8d77e4c10545c4e Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 19 Apr 2011 15:42:14 +0200 Subject: Fix more krazy warnings. --- src/tools/gen-cpp-ast/generate-ast.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/tools/gen-cpp-ast/generate-ast.cpp') diff --git a/src/tools/gen-cpp-ast/generate-ast.cpp b/src/tools/gen-cpp-ast/generate-ast.cpp index c59bda9a2c..7d51a82b14 100644 --- a/src/tools/gen-cpp-ast/generate-ast.cpp +++ b/src/tools/gen-cpp-ast/generate-ast.cpp @@ -1505,13 +1505,11 @@ void generateASTPatternBuilder_h(const QDir &cplusplusDir) out << ")" << endl << " {" << endl - << " " << className << " *__ast = new (&pool) " << className << ";" << endl; + << " " << className << " *__ast = new (&pool) " << className << ';' << endl; - QPair p; - foreach (p, args) { - out - << " __ast->" << p.second << " = " << p.second << ";" << endl; + foreach (const QPair &p, args) { + out << " __ast->" << p.second << " = " << p.second << ';' << endl; } out -- cgit v1.2.1