diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2020-11-18 22:42:51 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2020-11-19 08:42:14 +0000 |
commit | b2a766a79ac778febff87f0def34cf6d3f4f93e3 (patch) | |
tree | 8948acefd801721406f4e4015dde6616f4ee0303 /src/plugins/autotest/quick/quicktestparser.cpp | |
parent | 0c0347ce61a55b972178a8a07bb4f0c819555219 (diff) | |
download | qt-creator-b2a766a79ac778febff87f0def34cf6d3f4f93e3.tar.gz |
Don't access static functions/fields via instance
Courtesy of readability-static-accessed-through-instance
Change-Id: I71f54244f1e091315dac2943d9e1bfad6efa56a9
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/autotest/quick/quicktestparser.cpp')
-rw-r--r-- | src/plugins/autotest/quick/quicktestparser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/autotest/quick/quicktestparser.cpp b/src/plugins/autotest/quick/quicktestparser.cpp index c5b8809cce..0212b13f10 100644 --- a/src/plugins/autotest/quick/quicktestparser.cpp +++ b/src/plugins/autotest/quick/quicktestparser.cpp @@ -149,7 +149,7 @@ QList<Document::Ptr> QuickTestParser::scanDirectoryForQuickTestQmlFiles(const QS QFutureInterface<void> future; PathsAndLanguages paths; paths.maybeInsert(Utils::FilePath::fromString(srcDir), Dialect::Qml); - ModelManagerInterface::importScan(future, qmlJsMM->workingCopy(), paths, qmlJsMM, + ModelManagerInterface::importScan(future, ModelManagerInterface::workingCopy(), paths, qmlJsMM, false /*emitDocumentChanges*/, false /*onlyTheLib*/, true /*forceRescan*/ ); const Snapshot snapshot = QmlJSTools::Internal::ModelManager::instance()->snapshot(); @@ -284,7 +284,8 @@ void QuickTestParser::handleDirectoryChanged(const QString &directory) paths.maybeInsert(Utils::FilePath::fromString(directory), Dialect::Qml); QFutureInterface<void> future; ModelManagerInterface *qmlJsMM = ModelManagerInterface::instance(); - ModelManagerInterface::importScan(future, qmlJsMM->workingCopy(), paths, qmlJsMM, + ModelManagerInterface::importScan(future, ModelManagerInterface::workingCopy(), paths, + qmlJsMM, true /*emitDocumentChanges*/, false /*onlyTheLib*/, true /*forceRescan*/ ); |