diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 13:56:29 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 14:00:21 +0200 |
commit | db33fc46213be19daeff7e7a3c55b9f1d48eb01e (patch) | |
tree | 4e116bb60c5a08587fce19db2dd0b442ac5ed486 /sw/source/ui/vba/vbaselection.cxx | |
parent | 678c738b982a51978d9495019aea69b580747e0f (diff) |
loplugin:simplifybool
Change-Id: Ibdfb3a4f66513ef6844c8b7df0c07ffef6258e89
Diffstat (limited to 'sw/source/ui/vba/vbaselection.cxx')
-rw-r--r-- | sw/source/ui/vba/vbaselection.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx index 23074c8093ee..3cc96dbd480e 100644 --- a/sw/source/ui/vba/vbaselection.cxx +++ b/sw/source/ui/vba/vbaselection.cxx @@ -316,9 +316,9 @@ SwVbaSelection::Move( const uno::Any& _unit, const uno::Any& _count, const uno:: uno::Reference< text::XParagraphCursor > xParagraphCursor( xTextCursor, uno::UNO_QUERY_THROW ); for( sal_Int32 i=0; i<nCount; i++ ) { - if( ( eDirection == word::MOVE_UP ) && ( xParagraphCursor->gotoPreviousParagraph( bExpand ) == sal_False ) ) + if( ( eDirection == word::MOVE_UP ) && !xParagraphCursor->gotoPreviousParagraph( bExpand ) ) break; - else if( ( eDirection == word::MOVE_DOWN ) && ( xParagraphCursor->gotoNextParagraph( bExpand ) == sal_False ) ) + else if( ( eDirection == word::MOVE_DOWN ) && !xParagraphCursor->gotoNextParagraph( bExpand ) ) break; } } @@ -331,9 +331,9 @@ SwVbaSelection::Move( const uno::Any& _unit, const uno::Any& _count, const uno:: uno::Reference< text::XWordCursor > xWordCursor( xTextCursor, uno::UNO_QUERY_THROW ); for( sal_Int32 i=0; i<nCount; i++ ) { - if( (eDirection == word::MOVE_LEFT ) && ( xWordCursor->gotoPreviousWord( bExpand ) == sal_False ) ) + if( (eDirection == word::MOVE_LEFT ) && !xWordCursor->gotoPreviousWord( bExpand ) ) break; - else if( ( eDirection == word::MOVE_RIGHT ) && ( xWordCursor->gotoNextWord( bExpand ) == sal_False ) ) + else if( ( eDirection == word::MOVE_RIGHT ) && !xWordCursor->gotoNextWord( bExpand ) ) break; } } |