diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-12-29 16:42:38 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:12:52 -0300 |
commit | 2faf996129baf265c4b9ed1ff72a4cfb378d8306 (patch) | |
tree | 07b3855d393fbb8632202ee95205795a01f7174c | |
parent | 87ae5790fa75114dbf335380ca7ab644b013a50b (diff) |
Use QByteArray instead of QString to save 1 pico second :-)
-rw-r--r-- | generator/cppgenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp index a2da128b0..c186ab607 100644 --- a/generator/cppgenerator.cpp +++ b/generator/cppgenerator.cpp @@ -2012,11 +2012,11 @@ void CppGenerator::writeMethodCall(QTextStream& s, const AbstractMetaFunction* f + "\" with the modifications described in the type system file"), NULL); } } else if (func->isOperatorOverload()) { - QString firstArg("(*" CPP_SELF_VAR ")"); + QByteArray firstArg("(*" CPP_SELF_VAR ")"); if (func->isPointerOperator()) firstArg.remove(1, 1); // remove the de-reference operator - QString secondArg(CPP_ARG0); + QByteArray secondArg(CPP_ARG0); if (!func->isUnaryOperator() && shouldDereferenceArgumentPointer(func->arguments().first())) { secondArg.prepend('('); secondArg.append(')'); |