summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/viewling.cxx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2017-01-18 23:28:16 +0200
committerCaolán McNamara <caolanm@redhat.com>2017-01-22 20:56:25 +0000
commitff0fbfab197f6d717fd7f0afed2954356b3fe791 (patch)
tree96f6203d6f8fc88a1f2f63b3d361cdaac5f66848 /sw/source/uibase/uiview/viewling.cxx
parent8098cdaca08abaf12a32bbebcd058a98c2af03bd (diff)
tdf#105409 Use ScopedVclPtr
so disposeAndClear is called. Change-Id: I40da317ac03f815c8664e8a4648870c2066f9650 (cherry picked from commit 6884550c20f95a635357ad848799a1aae555968a) Reviewed-on: https://gerrit.libreoffice.org/33324 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/uiview/viewling.cxx')
-rw-r--r--sw/source/uibase/uiview/viewling.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx
index 5ac4f9f7547c..56f3b7e9590e 100644
--- a/sw/source/uibase/uiview/viewling.cxx
+++ b/sw/source/uibase/uiview/viewling.cxx
@@ -718,7 +718,7 @@ bool SwView::ExecSpellPopup(const Point& rPt)
aEvent.SourceWindow = VCLUnoHelper::GetInterface( m_pEditWin );
aEvent.ExecutePosition.X = aPixPos.X();
aEvent.ExecutePosition.Y = aPixPos.Y();
- VclPtr<Menu> pMenu;
+ ScopedVclPtr<Menu> pMenu;
OUString sMenuName = bUseGrammarContext ?
OUString("private:resource/GrammarContextMenu") : OUString("private:resource/SpellContextMenu");