diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-03-17 09:08:20 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-03-17 10:22:04 +0100 |
commit | 0e3d8473da888755f03abc71160050de9beaab7f (patch) | |
tree | dea24daef893c5365ae60a5fb392386f0fa62c39 /tests/auto | |
parent | bf67116a6f69462adad3edd2dd64aa05e00a41bd (diff) |
Port from QScopedPointer to std::unique_ptr
Fix compiler warning about deprecated QScopedPointer::take.
Change-Id: I7300e0a4eab5fca101b8b3127abf12e88359a5ca
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/palette/tst_palette.cpp | 2 |
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()); |