aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2019-10-23 12:59:09 +0200
committerChristian Stenger <christian.stenger@qt.io>2019-10-23 12:19:45 +0000
commit8db784349e57b45efdf2d51785e9b1466d286cce (patch)
tree2fc7fc081ac4849fca32e8984253794349e0ac5e /tests/auto
parent2f623a2f82fe51222236f1ee0b5fcab5a8a04799 (diff)
Tests: Fix compile after clean up
Amends 6371725dbfb7ee6c46e9840dcdebdeba504b56d3. Change-Id: If583fba25ccb92756938bd7127be9461d289a680 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qml/codemodel/importscheck/tst_importscheck.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/qml/codemodel/importscheck/tst_importscheck.cpp b/tests/auto/qml/codemodel/importscheck/tst_importscheck.cpp
index 0c11438e12..f6126b73af 100644
--- a/tests/auto/qml/codemodel/importscheck/tst_importscheck.cpp
+++ b/tests/auto/qml/codemodel/importscheck/tst_importscheck.cpp
@@ -70,7 +70,8 @@ void scanDir(const QString &dir)
paths.maybeInsert(Utils::FilePath::fromString(dir), Dialect::Qml);
ModelManagerInterface::importScan(result, ModelManagerInterface::workingCopy(), paths,
ModelManagerInterface::instance(), false);
- ViewerContext vCtx = ViewerContext(QStringList(), QStringList(dir));
+ ViewerContext vCtx;
+ vCtx.paths.append(dir);
Snapshot snap = ModelManagerInterface::instance()->snapshot();
ImportDependencies *iDeps = snap.importDependencies();
@@ -181,7 +182,8 @@ void tst_ImportCheck::test()
lPaths.maybeInsert(Utils::FilePath::fromString(path), Dialect::Qml);
ModelManagerInterface::importScan(result, ModelManagerInterface::workingCopy(), lPaths,
ModelManagerInterface::instance(), false);
- ViewerContext vCtx(QStringList(), paths);
+ ViewerContext vCtx;
+ vCtx.paths.append(paths);
Snapshot snap = ModelManagerInterface::instance()->snapshot();
ImportDependencies *iDeps = snap.importDependencies();