summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-12-29 16:42:38 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-12-29 16:42:38 -0200
commit304a8d46c162a3289da16ebcef839ff5c1b8697c (patch)
treeabac4add5ab3cfa3c1ba06510fb0fa34deeef790
parent1faf14ceb8a3eff5ecf3b92ce846970171f9e2b8 (diff)
downloadshiboken-304a8d46c162a3289da16ebcef839ff5c1b8697c.tar.gz
shiboken-304a8d46c162a3289da16ebcef839ff5c1b8697c.tar.xz
shiboken-304a8d46c162a3289da16ebcef839ff5c1b8697c.zip
Use QByteArray instead of QString to save 1 pico second :-)
-rw-r--r--generator/cppgenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index 47a2ca2c..5980fdad 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(')');