diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-03 10:30:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-03 10:30:51 +0100 |
commit | b7bc6e5486dd0f9006c33d03634952a9337da0f3 (patch) | |
tree | 4829bb09b149d33ce098f4a6409f236efb09d21d /sw | |
parent | 1038a323fb407bcc514426a2fb9e251216d37399 (diff) |
use UNDO_EMPTY instead of bare 0
Change-Id: Ida0b34a28b30eb9b3bab6b1b6a8112eb1c427c67
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/undo/docundo.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/undo/docundo.cxx b/sw/source/core/undo/docundo.cxx index 63cc4b004ec6..ea020b766ae6 100644 --- a/sw/source/core/undo/docundo.cxx +++ b/sw/source/core/undo/docundo.cxx @@ -195,7 +195,7 @@ UndoManager::StartUndo(SwUndoId const i_eUndoId, return UNDO_EMPTY; } - SwUndoId const eUndoId( (0 == i_eUndoId) ? UNDO_START : i_eUndoId ); + SwUndoId const eUndoId( (i_eUndoId == UNDO_EMPTY) ? UNDO_START : i_eUndoId ); OSL_ASSERT(UNDO_END != eUndoId); OUString comment( (UNDO_START == eUndoId) @@ -220,7 +220,7 @@ UndoManager::EndUndo(SwUndoId const i_eUndoId, SwRewriter const*const pRewriter) return UNDO_EMPTY; } - SwUndoId const eUndoId( ((0 == i_eUndoId) || (UNDO_START == i_eUndoId)) + SwUndoId const eUndoId( ((i_eUndoId == UNDO_EMPTY) || (UNDO_START == i_eUndoId)) ? UNDO_END : i_eUndoId ); OSL_ENSURE(!((UNDO_END == eUndoId) && pRewriter), "EndUndo(): no Undo ID, but rewriter given?"); |