forked from qt-creator/qt-creator
CppEditor: Make a few CppModelManager functions static
... to simplify code using it. Change-Id: Ib2bfbb5a17a1d48088a9cf4973d4c3f006cd34e4 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -392,7 +392,7 @@ void AutotestPluginPrivate::onRunUnderCursorTriggered(TestRunMode mode)
|
||||
const int line = currentEditor->currentLine();
|
||||
const FilePath filePath = currentEditor->textDocument()->filePath();
|
||||
|
||||
const CPlusPlus::Snapshot snapshot = CppEditor::CppModelManager::instance()->snapshot();
|
||||
const CPlusPlus::Snapshot snapshot = CppEditor::CppModelManager::snapshot();
|
||||
const CPlusPlus::Document::Ptr doc = snapshot.document(filePath);
|
||||
if (doc.isNull()) // not part of C++ snapshot
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user