[Libreoffice-commits] core.git: sw/source

Stephan Bergmann sbergman at redhat.com
Mon Apr 16 11:03:17 UTC 2018


 sw/source/uibase/utlui/content.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit df47dae7283f10be39c7052ac51967bce742b6ac
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Apr 16 13:02:22 2018 +0200

    More -Werror,-Wreturn-std-move
    
    Change-Id: I3d5be4c140e79c019dfc0c577bc57a63207df722

diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 6c927b7f287e..37de556ce50b 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -1156,7 +1156,7 @@ sal_Int8 SwContentTree::ExecuteDrop( const ExecuteDropEvent& rEvt )
 
 VclPtr<PopupMenu> SwContentTree::CreateContextMenu()
 {
-    VclPtrInstance<PopupMenu> pPop;
+    auto pPop = VclPtr<PopupMenu>::Create();
     VclPtrInstance<PopupMenu> pSubPop1;
     VclPtrInstance<PopupMenu> pSubPop2;
     VclPtrInstance<PopupMenu> pSubPop3;


More information about the Libreoffice-commits mailing list