summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-04-16 13:02:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-04-16 13:02:22 +0200
commitdf47dae7283f10be39c7052ac51967bce742b6ac (patch)
tree74cd547442441052c2bf6d9fc80b0aae29881c1d
parentc4c8865f98a884936c07e16a75e576b91eb2b4f1 (diff)
More -Werror,-Wreturn-std-move
Change-Id: I3d5be4c140e79c019dfc0c577bc57a63207df722
-rw-r--r--sw/source/uibase/utlui/content.cxx2
1 files changed, 1 insertions, 1 deletions
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;