diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-16 09:11:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-16 07:56:25 +0000 |
commit | 8ae9dcec653c4ad3eeb8c3e1fa9b1684e2bd64a2 (patch) | |
tree | d72e1a17603bb146cce0d02ffeec46acb57335c6 /sw/source/core/docnode/ndsect.cxx | |
parent | 3b7d751ad4f950aae0641a75b2ea993025629c9d (diff) |
convert SwUndoId to scoped enum
Change-Id: I782fdd53641c0d7c629265b6179de70aa54382f9
Reviewed-on: https://gerrit.libreoffice.org/35246
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/docnode/ndsect.cxx')
-rw-r--r-- | sw/source/core/docnode/ndsect.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx index 62d87c8a0144..403ccc69cdb6 100644 --- a/sw/source/core/docnode/ndsect.cxx +++ b/sw/source/core/docnode/ndsect.cxx @@ -516,7 +516,7 @@ void SwDoc::DelSectionFormat( SwSectionFormat *pFormat, bool bDelNodes ) { SwSectionFormats::iterator itFormatPos = std::find( mpSectionFormatTable->begin(), mpSectionFormatTable->end(), pFormat ); - GetIDocumentUndoRedo().StartUndo(UNDO_DELSECTION, nullptr); + GetIDocumentUndoRedo().StartUndo(SwUndoId::DELSECTION, nullptr); if( mpSectionFormatTable->end() != itFormatPos ) { @@ -542,7 +542,7 @@ void SwDoc::DelSectionFormat( SwSectionFormat *pFormat, bool bDelNodes ) GetFootnoteIdxs().UpdateFootnote( aUpdIdx ); getIDocumentState().SetModified(); //#126178# start/end undo have to be pairs! - GetIDocumentUndoRedo().EndUndo(UNDO_DELSECTION, nullptr); + GetIDocumentUndoRedo().EndUndo(SwUndoId::DELSECTION, nullptr); return ; } GetIDocumentUndoRedo().AppendUndo( MakeUndoDelSection( *pFormat ) ); @@ -556,7 +556,7 @@ void SwDoc::DelSectionFormat( SwSectionFormat *pFormat, bool bDelNodes ) GetFootnoteIdxs().UpdateFootnote( aUpdIdx ); getIDocumentState().SetModified(); //#126178# start/end undo have to be pairs! - GetIDocumentUndoRedo().EndUndo(UNDO_DELSECTION, nullptr); + GetIDocumentUndoRedo().EndUndo(SwUndoId::DELSECTION, nullptr); return ; } @@ -599,7 +599,7 @@ void SwDoc::DelSectionFormat( SwSectionFormat *pFormat, bool bDelNodes ) //FEATURE::CONDCOLL } - GetIDocumentUndoRedo().EndUndo(UNDO_DELSECTION, nullptr); + GetIDocumentUndoRedo().EndUndo(SwUndoId::DELSECTION, nullptr); getIDocumentState().SetModified(); } |