diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2010-12-21 13:52:26 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2010-12-21 13:52:26 +0100 |
commit | c7ad411225efebba968be4e1b851b9a95d920fde (patch) | |
tree | 265f697a60de31108396dbd9bba0e353d0aeada1 /svl | |
parent | f4686f635ee937f3d417ee2c368be17a803f384b (diff) |
undoapi: MSVC WaE (how did this survive the previous compilations?)
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/undo/undo.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index 6c527a928ac6..4787e6a26292 100644 --- a/svl/source/undo/undo.cxx +++ b/svl/source/undo/undo.cxx @@ -1299,8 +1299,8 @@ SfxListUndoAction::SfxListUndoAction void SfxListUndoAction::Undo() { - for(INT16 i=nCurUndoAction-1;i>=0;i--) - aUndoActions[i].pAction->Undo(); + for(size_t i=nCurUndoAction;i>0;) + aUndoActions[--i].pAction->Undo(); nCurUndoAction=0; } @@ -1308,8 +1308,8 @@ void SfxListUndoAction::Undo() void SfxListUndoAction::UndoWithContext( SfxUndoContext& i_context ) { - for(INT16 i=nCurUndoAction-1;i>=0;i--) - aUndoActions[i].pAction->UndoWithContext( i_context ); + for(size_t i=nCurUndoAction;i>0;) + aUndoActions[--i].pAction->UndoWithContext( i_context ); nCurUndoAction=0; } |