forked from qt-creator/qt-creator
preprocessor: prevent temporary copy
Change-Id: Ic86d8b091da332393a527ba634a23556f2001a8b Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user