summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-04-18 14:14:39 +0200
committerhjk <hjk@qt.io>2023-04-26 06:24:19 +0000
commitaeac83af7813f6ca5c67281c6cd91fc77351830e (patch)
tree1e1c2a0c05c3be22716360fd0a7157d028058cf4 /tests/auto
parentb4a6af026e5bce2340a900a92250e61d9205e511 (diff)
downloadqt-creator-aeac83af7813f6ca5c67281c6cd91fc77351830e.tar.gz
Utils: Collapse the two SettingsAccessor constructor hierarchies
Change-Id: I7b659c9e3c66700cfc92f9cfbd9df0535a1ca655 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/utils/settings/tst_settings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/utils/settings/tst_settings.cpp b/tests/auto/utils/settings/tst_settings.cpp
index 433401b9e1..9f723b916b 100644
--- a/tests/auto/utils/settings/tst_settings.cpp
+++ b/tests/auto/utils/settings/tst_settings.cpp
@@ -143,9 +143,9 @@ public:
};
BasicTestSettingsAccessor::BasicTestSettingsAccessor(const FilePath &baseName, const QByteArray &id) :
- Utils::MergingSettingsAccessor(std::make_unique<TestBackUpStrategy>(this),
- "TestData", TESTACCESSOR_APPLICATION_DN)
+ Utils::MergingSettingsAccessor("TestData", TESTACCESSOR_APPLICATION_DN)
{
+ setStrategy(std::make_unique<TestBackUpStrategy>(this));
setSettingsId(id);
setBaseFilePath(baseName);
}