diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:29:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:31:03 +0200 |
commit | 23b34e148b0b9bde6c21aff66dbb19eedcb6fc23 (patch) | |
tree | cfa215170da17fc7c01a2897af379a0ca1b71fbe | |
parent | a32f1d208eb232b9b0db6346d7b8a4140fa2d4e2 (diff) |
More loplugin:simplifybool
Change-Id: I34cb4961f6db405cc3b72d488d163487489b0251
-rw-r--r-- | vcl/generic/print/common_gfx.cxx | 2 | ||||
-rw-r--r-- | vcl/inc/svdata.hxx | 2 | ||||
-rw-r--r-- | vcl/source/control/edit.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl2.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/sallayout.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/layout.cxx | 4 | ||||
-rw-r--r-- | vcl/source/window/window2.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/app/saldisp.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/kde4/VCLKDEApplication.cxx | 2 |
9 files changed, 10 insertions, 10 deletions
diff --git a/vcl/generic/print/common_gfx.cxx b/vcl/generic/print/common_gfx.cxx index ffe1e25ae705..b02c57706c27 100644 --- a/vcl/generic/print/common_gfx.cxx +++ b/vcl/generic/print/common_gfx.cxx @@ -1144,7 +1144,7 @@ PrinterGfx::DrawEPS( const Rectangle& rBoundingBox, void* pPtr, sal_uInt32 nSize bool bEndComments = false; while( ! aStream.IsEof() && ( ( fLeft == 0 && fRight == 0 && fTop == 0 && fBottom == 0 ) || - ( aDocTitle.isEmpty() && bEndComments == false ) ) + ( aDocTitle.isEmpty() && !bEndComments ) ) ) { aStream.ReadLine( aLine ); diff --git a/vcl/inc/svdata.hxx b/vcl/inc/svdata.hxx index 4847e19e049e..c4da2e8db51c 100644 --- a/vcl/inc/svdata.hxx +++ b/vcl/inc/svdata.hxx @@ -385,7 +385,7 @@ struct ImplDelData bool IsDead() const { - DBG_ASSERT( mbDel == false, "object deleted while in use !" ); + DBG_ASSERT( !mbDel, "object deleted while in use !" ); return mbDel; } diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index c9e19db49bfe..809e9445fe1a 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2851,7 +2851,7 @@ void Edit::dragGestureRecognized( const ::com::sun::star::datatransfer::dnd::Dra SolarMutexGuard aVclGuard; if ( !IsTracking() && maSelection.Len() && - !(GetStyle() & WB_PASSWORD) && (!mpDDInfo || mpDDInfo->bStarterOfDD == false) ) // Kein Mehrfach D&D + !(GetStyle() & WB_PASSWORD) && (!mpDDInfo || !mpDDInfo->bStarterOfDD) ) // Kein Mehrfach D&D { Selection aSel( maSelection ); aSel.Justify(); diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx index 0c6714e9ffba..e6bd287f6393 100644 --- a/vcl/source/gdi/pdfwriter_impl2.cxx +++ b/vcl/source/gdi/pdfwriter_impl2.cxx @@ -1493,7 +1493,7 @@ bool PDFWriterImpl::computeUDictionaryValue( EncHashTransporter* i_pTransporter, for( sal_Int32 i = i_nKeyLength, y = 0; y < 5 ; y++ ) io_rProperties.EncryptionKey[i++] = 0; - if( io_rProperties.Security128bit == false ) + if( !io_rProperties.Security128bit ) { //3.4 //step 2 and 3 diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index f3481cf2b438..de37876d7770 100644 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -411,7 +411,7 @@ bool ImplLayoutRuns::PosIsInAnyRun( int nCharPos ) const for (size_t i = 0; i < maRuns.size(); i+=2) { - if( (bRet = PosIsInRun( nCharPos )) == true ) + if( (bRet = PosIsInRun( nCharPos )) ) break; pThis->NextRun(); } diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 74a95937542d..2cc0a675b5dc 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -890,11 +890,11 @@ VclGrid::array_type VclGrid::assembleGrid() const array_type B(boost::extents[nNonEmptyCols][nNonEmptyRows]); for (sal_Int32 x = 0, x2 = 0; x < nMaxX; ++x) { - if (aNonEmptyCols[x] == false) + if (!aNonEmptyCols[x]) continue; for (sal_Int32 y = 0, y2 = 0; y < nMaxY; ++y) { - if (aNonEmptyRows[y] == false) + if (!aNonEmptyRows[y]) continue; GridEntry &rEntry = A[x][y]; B[x2][y2++] = rEntry; diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index e6672875f7c4..68129c08561b 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -1523,7 +1523,7 @@ bool Window::set_font_attribute(const OString &rKey, const OString &rValue) aFont.SetItalic(ITALIC_NORMAL); SetControlFont(aFont); } - else if (rKey == "underline" && toBool(rValue) == true) + else if (rKey == "underline" && toBool(rValue)) { vcl::Font aFont(GetControlFont()); aFont.SetUnderline(UNDERLINE_SINGLE); diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx index e984b3e0dd44..eedbadbbfb5d 100644 --- a/vcl/unx/generic/app/saldisp.cxx +++ b/vcl/unx/generic/app/saldisp.cxx @@ -582,7 +582,7 @@ void SalDisplay::Init() bExactResolution = true; } } - if( bExactResolution == false ) + if( !bExactResolution ) { /* if Xft.dpi is not set, try and find the DPI from the * reported screen sizes and resolution. If there are multiple diff --git a/vcl/unx/kde4/VCLKDEApplication.cxx b/vcl/unx/kde4/VCLKDEApplication.cxx index 535977b524c7..bb849befb814 100644 --- a/vcl/unx/kde4/VCLKDEApplication.cxx +++ b/vcl/unx/kde4/VCLKDEApplication.cxx @@ -55,7 +55,7 @@ void VCLKDEApplication::preDialogSetup() // (see the KDE VCL plug), then this won't happen. // We cannot simply release SolarMutex here, because the event loop started // by the file dialog would also call back to LO code. - assert( QApplication::clipboard()->property( "useEventLoopWhenWaiting" ).toBool() == true ); + assert( QApplication::clipboard()->property( "useEventLoopWhenWaiting" ).toBool() ); } // various hacks to be performed after a Qt dialog has been closed |