From fa53b14796babd4ec4b44a05fa7724315a18bd63 Mon Sep 17 00:00:00 2001 From: Katja Marttila Date: Tue, 18 Jan 2022 16:17:54 +0200 Subject: 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 --- tests/auto/installer/solver/tst_solver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 , installedComponents); QFETCH(QSet , expectedResult); - UninstallerCalculator calc(installedComponents); + UninstallerCalculator calc(installedComponents, core); calc.appendComponentsToUninstall(selectedToUninstall); QSet result = calc.componentsToUninstall(); -- cgit v1.2.3