summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-10-28 01:18:17 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2016-10-28 01:21:29 +0300
commit03d6174919657a0e52e65d31fbc4b9a26db5d51e (patch)
treede3f475a7e13e50dd408c63ce365498aaabb8a31
parent89c23b4aaef931b5d6009efaf44ce6e6c976e8d4 (diff)
Reduce scope
Change-Id: I06695b310d016751ec80f1aacbba8567a70088a5
-rw-r--r--sw/source/uibase/ribbar/workctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx
index 8007a5010358..a03a4d777e26 100644
--- a/sw/source/uibase/ribbar/workctrl.cxx
+++ b/sw/source/uibase/ribbar/workctrl.cxx
@@ -78,13 +78,13 @@ SwTbxAutoTextCtrl::~SwTbxAutoTextCtrl()
VclPtr<SfxPopupWindow> SwTbxAutoTextCtrl::CreatePopupWindow()
{
- ScopedVclPtrInstance<PopupMenu> pPopup;
SwView* pView = ::GetActiveView();
if(pView && !pView->GetDocShell()->IsReadOnly() &&
!pView->GetWrtShell().HasReadonlySel() )
{
Link<Menu*,bool> aLnk = LINK(this, SwTbxAutoTextCtrl, PopupHdl);
+ ScopedVclPtrInstance<PopupMenu> pPopup;
SwGlossaryList* pGlossaryList = ::GetGlossaryList();
const size_t nGroupCount = pGlossaryList->GetGroupCount();
for(size_t i = 1; i <= nGroupCount; ++i)