Commit 9c80a469 authored by hjk's avatar hjk
Browse files

Fixes: save a few strlen calls

parent 7708d43f
......@@ -145,5 +145,5 @@ QString TypeOfExpression::preprocessedExpression(const QString &expression,
Preprocessor preproc(0, env);
QByteArray preprocessedCode;
preproc("<expression>", code, &preprocessedCode);
return QString::fromUtf8(preprocessedCode);
return QString::fromUtf8(preprocessedCode.constData(), preprocessedCode.size());
......@@ -459,7 +459,8 @@ bool PluginManager::runningTests() const
QString PluginManager::testDataDirectory() const
QString s = QString::fromLocal8Bit(qgetenv("IDETESTDIR"));
QByteArray ba = qgetenv("IDETESTDIR");
QString s = QString::fromLocal8Bit(ba.constData(), ba.size());
if (s.isEmpty()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment