Kaydet (Commit) d67d9c26 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in SwSpellDialogChildWindow

Change-Id: Ib79e4672b7857aaacef15cd55c8633523df4d26b
Reviewed-on: https://gerrit.libreoffice.org/57877
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 3c8a7a15
...@@ -160,7 +160,7 @@ SwSpellDialogChildWindow::~SwSpellDialogChildWindow () ...@@ -160,7 +160,7 @@ SwSpellDialogChildWindow::~SwSpellDialogChildWindow ()
SwWrtShell* pWrtShell = GetWrtShell_Impl(); SwWrtShell* pWrtShell = GetWrtShell_Impl();
if(!m_pSpellState->m_bInitialCall && pWrtShell) if(!m_pSpellState->m_bInitialCall && pWrtShell)
pWrtShell->SpellEnd(); pWrtShell->SpellEnd();
delete m_pSpellState; m_pSpellState.reset();
} }
SfxChildWinInfo SwSpellDialogChildWindow::GetInfo() const SfxChildWinInfo SwSpellDialogChildWindow::GetInfo() const
......
...@@ -29,7 +29,7 @@ class SwSpellDialogChildWindow ...@@ -29,7 +29,7 @@ class SwSpellDialogChildWindow
: public svx::SpellDialogChildWindow : public svx::SpellDialogChildWindow
{ {
bool m_bIsGrammarCheckingOn; bool m_bIsGrammarCheckingOn;
SpellState* m_pSpellState; std::unique_ptr<SpellState> m_pSpellState;
SwWrtShell* GetWrtShell_Impl(); SwWrtShell* GetWrtShell_Impl();
bool MakeTextSelection_Impl(SwWrtShell& rSh, ShellMode eSelMode); bool MakeTextSelection_Impl(SwWrtShell& rSh, ShellMode eSelMode);
......
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