preprocessor: save cycles by using ByteArrayRef

Change-Id: I339696763b045ef1bda17dd55746738ef4ddbb67
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-04-18 17:28:33 +02:00
committed by hjk
parent 3df5728dce
commit d4b4a75603
6 changed files with 16 additions and 12 deletions

View File

@@ -508,12 +508,12 @@ void CppPreprocessor::passedMacroDefinitionCheck(unsigned offset, const Macro &m
QVector<MacroArgumentReference>());
}
void CppPreprocessor::failedMacroDefinitionCheck(unsigned offset, const QByteArray &name)
void CppPreprocessor::failedMacroDefinitionCheck(unsigned offset, const CPlusPlus::Internal::ByteArrayRef &name)
{
if (! m_currentDoc)
return;
m_currentDoc->addUndefinedMacroUse(name, offset);
m_currentDoc->addUndefinedMacroUse(QByteArray(name.start(), name.size()), offset);
}
void CppPreprocessor::startExpandingMacro(unsigned offset,