Kaydet (Commit) 6884550c authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

tdf#105409 Use ScopedVclPtr

so disposeAndClear is called.

Change-Id: I40da317ac03f815c8664e8a4648870c2066f9650
üst ba19b9fd
...@@ -717,7 +717,7 @@ bool SwView::ExecSpellPopup(const Point& rPt) ...@@ -717,7 +717,7 @@ bool SwView::ExecSpellPopup(const Point& rPt)
aEvent.SourceWindow = VCLUnoHelper::GetInterface( m_pEditWin ); aEvent.SourceWindow = VCLUnoHelper::GetInterface( m_pEditWin );
aEvent.ExecutePosition.X = aPixPos.X(); aEvent.ExecutePosition.X = aPixPos.X();
aEvent.ExecutePosition.Y = aPixPos.Y(); aEvent.ExecutePosition.Y = aPixPos.Y();
VclPtr<Menu> pMenu; ScopedVclPtr<Menu> pMenu;
OUString sMenuName = bUseGrammarContext ? OUString sMenuName = bUseGrammarContext ?
OUString("private:resource/GrammarContextMenu") : OUString("private:resource/SpellContextMenu"); OUString("private:resource/GrammarContextMenu") : OUString("private:resource/SpellContextMenu");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment