aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/palette/tst_palette.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/palette/tst_palette.cpp')
-rw-r--r--tests/auto/palette/tst_palette.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/palette/tst_palette.cpp b/tests/auto/palette/tst_palette.cpp
index d81625db..ca1675f1 100644
--- a/tests/auto/palette/tst_palette.cpp
+++ b/tests/auto/palette/tst_palette.cpp
@@ -304,7 +304,7 @@ void tst_palette::defaultPalette()
// The call to setData() above causes QQuickBasicTheme to be set as the current theme,
// so we must make sure we only set our theme afterwards.
- std::unique_ptr<QQuickTheme> oldTheme(QQuickThemePrivate::instance.take());
+ std::unique_ptr<QQuickTheme> oldTheme(QQuickThemePrivate::instance.release());
QQuickThemePrivate::instance.reset(new TestTheme);
QScopedPointer<QObject> object(component.create());