Commit 46b5ed2b authored by Nikolai Kosjar's avatar Nikolai Kosjar

CppTools: Mini refactoring in BuiltinEditorDocumentProcessor

Change-Id: I9239430f809bb9270fd9f1a99aad1136f10124d7
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent a29539f9
......@@ -137,10 +137,10 @@ BuiltinEditorDocumentProcessor::BuiltinEditorDocumentProcessor(
? new CppTools::SemanticHighlighter(document)
: 0)
{
QSharedPointer<Internal::CppCodeModelSettings> cms
= Internal::CppToolsPlugin::instance()->codeModelSettings();
m_parser->setUsePrecompiledHeaders(
cms->pchUsage() != Internal::CppCodeModelSettings::PchUse_None);
using namespace Internal;
QSharedPointer<CppCodeModelSettings> cms = CppToolsPlugin::instance()->codeModelSettings();
m_parser->setUsePrecompiledHeaders(cms->pchUsage() != CppCodeModelSettings::PchUse_None);
if (m_semanticHighlighter) {
m_semanticHighlighter->setHighlightingRunner(
......@@ -151,7 +151,7 @@ BuiltinEditorDocumentProcessor::BuiltinEditorDocumentProcessor(
});
}
connect(cmm(), &Internal::CppModelManager::documentUpdated,
connect(cmm(), &CppModelManager::documentUpdated,
this, &BuiltinEditorDocumentProcessor::onDocumentUpdated);
connect(&m_semanticInfoUpdater, &SemanticInfoUpdater::updated,
this, &BuiltinEditorDocumentProcessor::onSemanticInfoUpdated);
......
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