From 2d71dd52b6d91660cda6cb8f9457463439f56e20 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 12 Jul 2018 09:42:07 +0200 Subject: merge IUndoManager into SfxUndoManager SfxUndoManager is the only implementation of the IUnderManager "interface", and it lives in the same header. Plus this way we can get rid of some covariant parameters, which will make using std::unique_ptr easier. Change-Id: I6661b9876b18da830bead78794d237886cd3c5c9 Reviewed-on: https://gerrit.libreoffice.org/57317 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cui/source/dialogs/SpellDialog.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cui') diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index b782ed533d73..b3672ff1c727 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -1906,7 +1906,7 @@ svx::SpellPortions SentenceEditWindow_Impl::CreateSpellPortions() const void SentenceEditWindow_Impl::Undo() { - ::svl::IUndoManager& rUndoMgr = GetTextEngine()->GetUndoManager(); + SfxUndoManager& rUndoMgr = GetTextEngine()->GetUndoManager(); DBG_ASSERT(GetUndoActionCount(), "no undo actions available" ); if(!GetUndoActionCount()) return; @@ -1932,7 +1932,7 @@ void SentenceEditWindow_Impl::ResetUndo() void SentenceEditWindow_Impl::AddUndoAction( SfxUndoAction *pAction ) { - ::svl::IUndoManager& rUndoMgr = GetTextEngine()->GetUndoManager(); + SfxUndoManager& rUndoMgr = GetTextEngine()->GetUndoManager(); rUndoMgr.AddUndoAction(pAction); GetSpellDialog()->m_pUndoPB->Enable(); } -- cgit