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 /sw/inc | |
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 'sw/inc')
-rw-r--r-- | sw/inc/undobj.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/inc/undobj.hxx b/sw/inc/undobj.hxx index 26625731ad22..3f0e521213e7 100644 --- a/sw/inc/undobj.hxx +++ b/sw/inc/undobj.hxx @@ -72,9 +72,6 @@ protected: */ virtual SwRewriter GetRewriter() const; - // return type is sal_uInt16 because this overrides SfxUndoAction::GetId() - virtual sal_uInt16 GetId() const override { return static_cast<sal_uInt16>(m_nId); } - // the 4 methods that derived classes have to override // base implementation does nothing virtual void RepeatImpl( ::sw::RepeatContext & ); @@ -97,6 +94,8 @@ public: SwUndo(SwUndoId const nId, const SwDoc* pDoc); virtual ~SwUndo() override; + SwUndoId GetId() const { return m_nId; } + /** Returns textual comment for this undo object. |