diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewbridge.cpp b/kcmkwin/kwindecoration/declarative-plugin/previewbridge.cpp index bf52a7be52..bad4cc1190 100644 --- a/kcmkwin/kwindecoration/declarative-plugin/previewbridge.cpp +++ b/kcmkwin/kwindecoration/declarative-plugin/previewbridge.cpp @@ -60,7 +60,7 @@ std::unique_ptr PreviewBridge::createClient(DecoratedCli { auto ptr = std::unique_ptr(new PreviewClient(client, decoration)); m_lastCreatedClient = ptr.get(); - return std::move(ptr); + return ptr; } void PreviewBridge::update(Decoration *decoration, const QRect &geometry) @@ -78,7 +78,7 @@ std::unique_ptr PreviewBridge::settings(DecorationSet { auto ptr = std::unique_ptr(new PreviewSettings(parent)); m_lastCreatedSettings = ptr.get(); - return std::move(ptr); + return ptr; } void PreviewBridge::registerPreviewItem(PreviewItem *item)