summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/edundo.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 07:47:04 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 07:47:04 +0000
commit8d38dbd49ebeec69264facfc76caaa6a905b4a17 (patch)
tree5ada7cb745f698619e8cd40ee1d9ef6392f0c25a /sw/source/core/edit/edundo.cxx
parent97786d427d7fdef9f3787ee517f714283fd85fcd (diff)
INTEGRATION: CWS swwarnings (1.11.222); FILE MERGED
2007/05/16 09:20:55 os 1.11.222.3: |= operators fixed 2007/05/16 08:40:23 os 1.11.222.2: #77404# |= correctly resolved 2007/04/03 12:59:49 tl 1.11.222.1: #i69287# warning-free code
Diffstat (limited to 'sw/source/core/edit/edundo.cxx')
-rw-r--r--sw/source/core/edit/edundo.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/sw/source/core/edit/edundo.cxx b/sw/source/core/edit/edundo.cxx
index 140d88bcdd6e..affb5a8176b7 100644
--- a/sw/source/core/edit/edundo.cxx
+++ b/sw/source/core/edit/edundo.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: edundo.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: obo $ $Date: 2006-09-16 21:08:26 $
+ * last change: $Author: hr $ $Date: 2007-09-27 08:47:04 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -79,7 +79,7 @@ void lcl_SelectSdrMarkList( SwEditShell* pShell,
const SdrMarkList* pSdrMarkList );
-BOOL SwEditShell::Undo( USHORT nUndoId, USHORT nCnt )
+BOOL SwEditShell::Undo( SwUndoId nUndoId, USHORT nCnt )
{
SET_CURR_SHELL( this );
@@ -100,7 +100,7 @@ BOOL SwEditShell::Undo( USHORT nUndoId, USHORT nCnt )
// JP 02.04.98: Cursor merken - beim Auto-Format/-Korrektur
// soll dieser wieder an die Position
- USHORT nLastUndoId = GetDoc()->GetUndoIds(NULL, NULL);
+ SwUndoId nLastUndoId = GetDoc()->GetUndoIds(NULL, NULL);
BOOL bRestoreCrsr = 1 == nCnt && ( UNDO_AUTOFORMAT == nLastUndoId ||
UNDO_AUTOCORRECT == nLastUndoId );
Push();
@@ -109,14 +109,14 @@ BOOL SwEditShell::Undo( USHORT nUndoId, USHORT nCnt )
// Erkennung darf nur noch fuer die neue "Box" erfolgen!
ClearTblBoxCntnt();
- IDocumentRedlineAccess::RedlineMode_t eOld = GetDoc()->GetRedlineMode();
+ RedlineMode_t eOld = GetDoc()->GetRedlineMode();
SwUndoIter aUndoIter( GetCrsr(), nUndoId );
while( nCnt-- )
{
do {
- bRet |= GetDoc()->Undo( aUndoIter );
+ bRet = GetDoc()->Undo( aUndoIter ) || bRet;
if( !aUndoIter.IsNextUndo() )
break;
@@ -195,14 +195,14 @@ USHORT SwEditShell::Redo( USHORT nCnt )
// Erkennung darf nur noch fuer die neue "Box" erfolgen!
ClearTblBoxCntnt();
- IDocumentRedlineAccess::RedlineMode_t eOld = GetDoc()->GetRedlineMode();
+ RedlineMode_t eOld = GetDoc()->GetRedlineMode();
- SwUndoIter aUndoIter( GetCrsr(), 0 );
+ SwUndoIter aUndoIter( GetCrsr(), UNDO_EMPTY );
while( nCnt-- )
{
do {
- bRet |= GetDoc()->Redo( aUndoIter );
+ bRet = GetDoc()->Redo( aUndoIter ) || bRet;
if( !aUndoIter.IsNextUndo() )
break;
@@ -265,8 +265,8 @@ USHORT SwEditShell::Repeat( USHORT nCount )
BOOL bRet = FALSE;
StartAllAction();
- SwUndoIter aUndoIter( GetCrsr(), 0 );
- bRet |= GetDoc()->Repeat( aUndoIter, nCount );
+ SwUndoIter aUndoIter( GetCrsr(), UNDO_EMPTY );
+ bRet = GetDoc()->Repeat( aUndoIter, nCount ) || bRet;
EndAllAction();
return bRet;