diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-15 15:50:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-16 06:09:55 +0000 |
commit | 64ea8306b0ceb001132ac9cbc945a12afc01b8cd (patch) | |
tree | f77f453a43c8ce388b45b460193d608399ecaa47 /svl/source | |
parent | 4f786274be8f9b01b34ad0772bcf718d5259bdc0 (diff) |
drop GetId() from SfxUndoAction
mostly so that the subclasses can use proper enum types for their own
IDs.
It turns out that nothing at the svl/sfx2 level needs an ID anyhow.
Change-Id: I3c020aeafb812fa30d896216d4e3bc1a82cbfeab
Reviewed-on: https://gerrit.libreoffice.org/35222
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/undo/undo.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index 4636021b5b75..71dd56de8621 100644 --- a/svl/source/undo/undo.cxx +++ b/svl/source/undo/undo.cxx @@ -70,11 +70,6 @@ OUString SfxUndoAction::GetComment() const } -sal_uInt16 SfxUndoAction::GetId() const -{ - return 0; -} - sal_Int32 SfxUndoAction::GetViewShellId() const { return -1; @@ -698,17 +693,6 @@ OUString SfxUndoManager::GetUndoActionComment( size_t nNo, bool const i_currentL } -sal_uInt16 SfxUndoManager::GetUndoActionId() const -{ - UndoManagerGuard aGuard( *m_xData ); - - assert(m_xData->pActUndoArray->nCurUndoAction > 0); - if ( m_xData->pActUndoArray->nCurUndoAction == 0 ) - return 0; - return m_xData->pActUndoArray->aUndoActions[m_xData->pActUndoArray->nCurUndoAction-1].pAction->GetId(); -} - - SfxUndoAction* SfxUndoManager::GetUndoAction( size_t nNo ) const { UndoManagerGuard aGuard( *m_xData ); |