diff options
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 2 |
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; |