diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testmerge.cpp | 2 | ||||
-rw-r--r-- | tests/testparse.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/testmerge.cpp b/tests/testmerge.cpp index 238044739..06d82e870 100644 --- a/tests/testmerge.cpp +++ b/tests/testmerge.cpp @@ -12,7 +12,7 @@ void TestMerge::initTestCase() { /* we need to manually tell that the resource exists, because we are using it as library. */ Q_INIT_RESOURCE(subsurface); - prefs.cloud_base_url = strdup(default_prefs.cloud_base_url); + copy_prefs(&default_prefs, &prefs); } void TestMerge::cleanup() diff --git a/tests/testparse.cpp b/tests/testparse.cpp index 06eddaa8a..c3446712b 100644 --- a/tests/testparse.cpp +++ b/tests/testparse.cpp @@ -35,7 +35,7 @@ void TestParse::initTestCase() { /* we need to manually tell that the resource exists, because we are using it as library. */ Q_INIT_RESOURCE(subsurface); - prefs.cloud_base_url = strdup(default_prefs.cloud_base_url); + copy_prefs(&default_prefs, &prefs); } void TestParse::init() |