summaryrefslogtreecommitdiff
path: root/sw/inc/undobj.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-15 15:50:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-16 06:09:55 +0000
commit64ea8306b0ceb001132ac9cbc945a12afc01b8cd (patch)
treef77f453a43c8ce388b45b460193d608399ecaa47 /sw/inc/undobj.hxx
parent4f786274be8f9b01b34ad0772bcf718d5259bdc0 (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/undobj.hxx')
-rw-r--r--sw/inc/undobj.hxx5
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.