diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-07-07 15:48:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-07-07 19:48:01 +0100 |
commit | 4c9d7772bd76c30ddbfb7e0b3460aabb9529cfde (patch) | |
tree | 58dbaafe8ada1767f03f3827222d744e6ae12137 /svx | |
parent | 3398b59d2dbdcafc7fd3e7446271c5dc3bd9b3be (diff) |
spelling dialog always leaked here
Change-Id: I00c96bbfe7106a09c0a8aa09f3209537bc3d2b07
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/SpellDialogChildWindow.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/dialog/SpellDialogChildWindow.cxx b/svx/source/dialog/SpellDialogChildWindow.cxx index 7f580d80ffe2..181cede78c63 100644 --- a/svx/source/dialog/SpellDialogChildWindow.cxx +++ b/svx/source/dialog/SpellDialogChildWindow.cxx @@ -35,10 +35,10 @@ SpellDialogChildWindow::SpellDialogChildWindow ( SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); DBG_ASSERT(pFact, "SvxAbstractDialogFactory::Create() failed"); - m_pAbstractSpellDialog = pFact->CreateSvxSpellDialog(_pParent, + m_xAbstractSpellDialog.reset(pFact->CreateSvxSpellDialog(_pParent, pBindings, - this ); - pWindow = m_pAbstractSpellDialog->GetWindow(); + this )); + pWindow = m_xAbstractSpellDialog->GetWindow(); eChildAlignment = SfxChildAlignment::NOALIGNMENT; SetHideNotDelete(true); } @@ -49,15 +49,15 @@ SpellDialogChildWindow::~SpellDialogChildWindow() SfxBindings& SpellDialogChildWindow::GetBindings() const { - OSL_ASSERT (m_pAbstractSpellDialog != NULL); - return m_pAbstractSpellDialog->GetBindings(); + assert(m_xAbstractSpellDialog); + return m_xAbstractSpellDialog->GetBindings(); } void SpellDialogChildWindow::InvalidateSpellDialog() { - OSL_ASSERT (m_pAbstractSpellDialog != NULL); - if(m_pAbstractSpellDialog) - m_pAbstractSpellDialog->Invalidate(); + OSL_ASSERT (m_xAbstractSpellDialog); + if (m_xAbstractSpellDialog) + m_xAbstractSpellDialog->Invalidate(); } bool SpellDialogChildWindow::HasAutoCorrection() |