diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-10-23 09:14:58 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-10-23 10:14:47 +0000 |
commit | 6371725dbfb7ee6c46e9840dcdebdeba504b56d3 (patch) | |
tree | e3e2a5c5c3493491837e15a5e0e2472572104eca /src/plugins/qmljstools/qmljsmodelmanager.cpp | |
parent | 3b65c0a5d599d169ddad9b86d8f952ada7ff28f1 (diff) |
QmlJS: Clean up ViewerContext
The special ctor wasn't used anywhere, the default ctor can be replaced
by inline initialization, maybeAddPath is only meaningful in the model
manager and the language compatibility check should definitely not
pretend to be a general rule either.
Change-Id: I11cf25fe1c696550d33b56ce57316100321d564b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/qmljstools/qmljsmodelmanager.cpp')
-rw-r--r-- | src/plugins/qmljstools/qmljsmodelmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmljstools/qmljsmodelmanager.cpp b/src/plugins/qmljstools/qmljsmodelmanager.cpp index b33846faf91..ca4fc555941 100644 --- a/src/plugins/qmljstools/qmljsmodelmanager.cpp +++ b/src/plugins/qmljstools/qmljsmodelmanager.cpp @@ -224,7 +224,7 @@ void ModelManager::delayedInitialization() ViewerContext qbsVContext; qbsVContext.language = Dialect::QmlQbs; - qbsVContext.maybeAddPath(ICore::resourcePath() + QLatin1String("/qbs")); + qbsVContext.paths.append(ICore::resourcePath() + QLatin1String("/qbs")); setDefaultVContext(qbsVContext); } |