diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-05 12:26:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-05 12:21:19 +0000 |
commit | 572e9cde744e2b482a04ff4b457ad2cfde5f70d2 (patch) | |
tree | 78e93df178de6d17d55eef7c3907781aa131ff7c /svtools | |
parent | 5f282c101a644ffc3615c3dc43ddb99febecae16 (diff) |
loplugin:redundantcast find c-style bool casts
Change-Id: I3237b93babc67de12c3771aa84766c2141ca93b2
Reviewed-on: https://gerrit.libreoffice.org/36137
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/brwbox/datwin.cxx | 2 | ||||
-rw-r--r-- | svtools/source/control/fmtfield.cxx | 2 | ||||
-rw-r--r-- | svtools/source/control/ruler.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx index 29a4f2a3d6ae..14070f1613cf 100644 --- a/svtools/source/brwbox/datwin.cxx +++ b/svtools/source/brwbox/datwin.cxx @@ -633,7 +633,7 @@ BrowserExecuteDropEvent::BrowserExecuteDropEvent( BrowserDataWin *pWindow, const void BrowserDataWin::SetUpdateMode( bool bMode ) { DBG_ASSERT( !bUpdateMode || aInvalidRegion.empty(), "invalid region not empty" ); - if ( (bool) bMode == bUpdateMode ) + if ( bMode == bUpdateMode ) return; bUpdateMode = bMode; diff --git a/svtools/source/control/fmtfield.cxx b/svtools/source/control/fmtfield.cxx index f747d80ce115..5deca350bbbe 100644 --- a/svtools/source/control/fmtfield.cxx +++ b/svtools/source/control/fmtfield.cxx @@ -636,7 +636,7 @@ void FormattedField::SetThousandsSep(bool _bUseSeparator) bool bThousand, IsRed; sal_uInt16 nPrecision, nAnzLeading; ImplGetFormatter()->GetFormatSpecialInfo(m_nFormatKey, bThousand, IsRed, nPrecision, nAnzLeading); - if (bThousand == (bool)_bUseSeparator) + if (bThousand == _bUseSeparator) return; // we need the language for the following diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index ce1e4329ac11..717ec9109efa 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -2743,7 +2743,7 @@ void Ruler::DrawTab(vcl::RenderContext& rRenderContext, const Color &rFillColor, void Ruler::SetTextRTL(bool bRTL) { - if(mpData->bTextRTL != (bool) bRTL) + if(mpData->bTextRTL != bRTL) { mpData->bTextRTL = bRTL; if ( IsReallyVisible() && IsUpdateMode() ) |