summaryrefslogtreecommitdiff
path: root/svl/source/undo
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-28 19:57:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-28 20:24:40 +0100
commit9d29f9913faaefe350d7e056330368b3dfa26d49 (patch)
tree5daa4993ba62911ee9c833e4dcc09556ec5fb612 /svl/source/undo
parentc35616dd73c8b05e422f3b561f21e21f5489d574 (diff)
bool improvements
Change-Id: I6cf511b92383f3cd60923620518b9233b82850c0
Diffstat (limited to 'svl/source/undo')
-rw-r--r--svl/source/undo/undo.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index 867f72d311bf..0f695ec7f5d3 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -718,13 +718,13 @@ bool SfxUndoManager::ImplUndo( SfxUndoContext* i_contextOrNull )
if ( ImplIsInListAction_Lock() )
{
OSL_ENSURE( false, "SfxUndoManager::Undo: not possible when within a list action!" );
- return sal_False;
+ return false;
}
if ( m_pData->pActUndoArray->nCurUndoAction == 0 )
{
OSL_ENSURE( false, "SfxUndoManager::Undo: undo stack is empty!" );
- return sal_False;
+ return false;
}
SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ --m_pData->pActUndoArray->nCurUndoAction ].pAction;
@@ -763,7 +763,7 @@ bool SfxUndoManager::ImplUndo( SfxUndoContext* i_contextOrNull )
aGuard.scheduleNotification( &SfxUndoListener::actionUndone, sActionComment );
- return sal_True;
+ return true;
}
@@ -830,13 +830,13 @@ bool SfxUndoManager::ImplRedo( SfxUndoContext* i_contextOrNull )
if ( ImplIsInListAction_Lock() )
{
OSL_ENSURE( false, "SfxUndoManager::Redo: not possible when within a list action!" );
- return sal_False;
+ return false;
}
if ( m_pData->pActUndoArray->nCurUndoAction >= m_pData->pActUndoArray->aUndoActions.size() )
{
OSL_ENSURE( false, "SfxUndoManager::Redo: redo stack is empty!" );
- return sal_False;
+ return false;
}
SfxUndoAction* pAction = m_pData->pActUndoArray->aUndoActions[ m_pData->pActUndoArray->nCurUndoAction++ ].pAction;
@@ -876,7 +876,7 @@ bool SfxUndoManager::ImplRedo( SfxUndoContext* i_contextOrNull )
aGuard.scheduleNotification( &SfxUndoListener::actionRedone, sActionComment );
- return sal_True;
+ return true;
}
@@ -904,7 +904,7 @@ bool SfxUndoManager::Repeat( SfxRepeatTarget &rTarget )
aGuard.clear();
if ( pAction->CanRepeat( rTarget ) )
pAction->Repeat( rTarget );
- return sal_True;
+ return true;
}
return false;