Commit 7383220d authored by hjk's avatar hjk Committed by hjk
Browse files

preprocessor: prevent temporary copy



Change-Id: Ic86d8b091da332393a527ba634a23556f2001a8b
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 994cbbb1
......@@ -1171,10 +1171,10 @@ void Preprocessor::handleIncludeDirective(PPToken *tk)
else
return; //### TODO: add error message?
included = included.mid(1, included.size() - 2);
QString inc = QString::fromUtf8(included.constData());
if (m_client)
if (m_client) {
QString inc = QString::fromUtf8(included.constData() + 1, included.size() - 2);
m_client->sourceNeeded(inc, mode, line);
}
}
void Preprocessor::handleDefineDirective(PPToken *tk)
......
Markdown is supported
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