[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - sfx2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Mar 4 14:19:23 UTC 2019


 sfx2/source/sidebar/SidebarController.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 441300d5782caf9874cb1f37bdece160e041adbb
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Thu Nov 29 07:05:52 2018 -0500
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Mon Mar 4 15:19:00 2019 +0100

    sfx: fix -Wreturn-std-move warning
    
    Change-Id: Ibd927983505a6924d32c45f6425a08f28bf75f9e
    Reviewed-on: https://gerrit.libreoffice.org/68259
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index 78efa83ed087..70725c46bc86 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -1010,7 +1010,7 @@ VclPtr<PopupMenu> SidebarController::CreatePopupMenu (
 
     pMenu->RemoveDisabledEntries(false);
 
-    return pMenu;
+    return std::move(pMenu);
 }
 
 IMPL_LINK(SidebarController, OnMenuItemSelected, Menu*, pMenu, bool)


More information about the Libreoffice-commits mailing list