summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2022-01-18 16:17:54 +0200
committerKatja Marttila <katja.marttila@qt.io>2022-01-19 14:24:42 +0200
commitfa53b14796babd4ec4b44a05fa7724315a18bd63 (patch)
tree9e01ab80ec75c21d33297e9b92a808f4bd5fc9ee /tests
parentda7d37000dc885d4f7c2d135d6ea1a080d4548f8 (diff)
Make Updater -view checkbox selection faster
If there are lot of components installed, querying core from component caused unnecessary performance hit. Also replaced the foreach keyword with the preferred C++ range-based loop Task-number: QTIFW-1021 Change-Id: I961439ba14f26fee21f201769a71319b4b98d14b Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/installer/solver/tst_solver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/installer/solver/tst_solver.cpp b/tests/auto/installer/solver/tst_solver.cpp
index d1c3aaa14..2f4e17855 100644
--- a/tests/auto/installer/solver/tst_solver.cpp
+++ b/tests/auto/installer/solver/tst_solver.cpp
@@ -290,7 +290,7 @@ private slots:
QFETCH(QList<Component *> , installedComponents);
QFETCH(QSet<Component *> , expectedResult);
- UninstallerCalculator calc(installedComponents);
+ UninstallerCalculator calc(installedComponents, core);
calc.appendComponentsToUninstall(selectedToUninstall);
QSet<Component *> result = calc.componentsToUninstall();