Kaydet (Commit) 4c9d7772 authored tarafından Caolán McNamara's avatar Caolán McNamara

spelling dialog always leaked here

Change-Id: I00c96bbfe7106a09c0a8aa09f3209537bc3d2b07
üst 3398b59d
......@@ -46,7 +46,7 @@ class SVX_DLLPUBLIC SpellDialogChildWindow
: public SfxChildWindow
{
friend class SpellDialog;
AbstractSpellDialog* m_pAbstractSpellDialog;
std::unique_ptr<AbstractSpellDialog> m_xAbstractSpellDialog;
public:
SpellDialogChildWindow (
vcl::Window*pParent,
......
......@@ -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()
......
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