summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-21 21:19:12 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-22 08:22:32 +0100
commit3257e9a47a79678fc29d29166700e82d0ab7ab1c (patch)
tree41eee99235c44cbc9b429e25624803954b98bfaf /editeng
parentbool improvements (diff)
downloadcore-3257e9a47a79678fc29d29166700e82d0ab7ab1c.tar.gz
core-3257e9a47a79678fc29d29166700e82d0ab7ab1c.zip
bool improvements
Change-Id: Ia212b8f80da70de7796f0d8ba817c8d3da693080
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit.cxx4
-rw-r--r--editeng/source/editeng/impedit3.cxx2
-rw-r--r--editeng/source/uno/unofored.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index 556bf80050ba..598ddd874fbc 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -161,7 +161,7 @@ void ImpEditView::DrawSelection( EditSelection aTmpSel, Region* pRegion, OutputD
if ( !pRegion )
{
- if ( pEditEngine->pImpEditEngine->GetUpdateMode() == sal_False )
+ if ( !pEditEngine->pImpEditEngine->GetUpdateMode() )
return;
if ( pEditEngine->pImpEditEngine->IsInUndo() )
return;
@@ -642,7 +642,7 @@ void ImpEditView::ShowCursor( sal_Bool bGotoCursor, sal_Bool bForceVisCursor, sa
// is initialized in Paint, because no SetPool();
if ( pEditEngine->pImpEditEngine->IsFormatting() )
return;
- if ( pEditEngine->pImpEditEngine->GetUpdateMode() == sal_False )
+ if ( !pEditEngine->pImpEditEngine->GetUpdateMode() )
return;
if ( pEditEngine->pImpEditEngine->IsInUndo() )
return;
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index 80a338055e6d..a39a5915cf7b 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -3953,7 +3953,7 @@ EditSelection ImpEditEngine::MoveParagraphs( Range aOldPositions, sal_Int32 nNew
// Where the paragraph was inserted it has to be properly redrawn:
// Where the paragraph was removed it has to be properly redrawn:
// ( and correspondingly in between as well...)
- if ( pCurView && ( GetUpdateMode() == sal_True ) )
+ if ( pCurView && GetUpdateMode() )
{
// in this case one can redraw directly without invalidating the
// Portions
diff --git a/editeng/source/uno/unofored.cxx b/editeng/source/uno/unofored.cxx
index f073beec20ba..6b5e09a700fd 100644
--- a/editeng/source/uno/unofored.cxx
+++ b/editeng/source/uno/unofored.cxx
@@ -295,7 +295,7 @@ Rectangle SvxEditEngineForwarder::GetCharBounds( sal_Int32 nPara, sal_uInt16 nIn
// don't rotate for vertical text.
Size aSize( rEditEngine.CalcTextWidth(), rEditEngine.GetTextHeight() );
::std::swap( aSize.Width(), aSize.Height() );
- bool bIsVertical( rEditEngine.IsVertical() == sal_True );
+ bool bIsVertical( rEditEngine.IsVertical() );
// #108900# Handle virtual position one-past-the end of the string
if( nIndex >= rEditEngine.GetTextLen(nPara) )
@@ -380,7 +380,7 @@ sal_Bool SvxEditEngineForwarder::GetIndexAtPoint( const Point& rPos, sal_Int32&
::std::swap( aSize.Width(), aSize.Height() );
Point aEEPos( SvxEditSourceHelper::UserSpaceToEE( rPos,
aSize,
- rEditEngine.IsVertical() == sal_True ));
+ rEditEngine.IsVertical() ));
EPosition aDocPos = rEditEngine.FindDocPosition( aEEPos );