summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-05 12:26:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-05 12:21:19 +0000
commit572e9cde744e2b482a04ff4b457ad2cfde5f70d2 (patch)
tree78e93df178de6d17d55eef7c3907781aa131ff7c /svx
parent5f282c101a644ffc3615c3dc43ddb99febecae16 (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 'svx')
-rw-r--r--svx/source/engine3d/obj3d.cxx2
-rw-r--r--svx/source/fmcomp/gridctrl.cxx2
-rw-r--r--svx/source/sdr/contact/displayinfo.cxx6
-rw-r--r--svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx4
-rw-r--r--svx/source/sdr/overlay/overlayobject.cxx6
-rw-r--r--svx/source/svdraw/svddrgv.cxx2
-rw-r--r--svx/source/svdraw/svdoashp.cxx2
-rw-r--r--svx/source/svdraw/svdopath.cxx2
-rw-r--r--svx/source/svdraw/svdotext.cxx2
-rw-r--r--svx/source/svdraw/svdpage.cxx2
-rw-r--r--svx/source/svdraw/svdpntv.cxx8
11 files changed, 19 insertions, 19 deletions
diff --git a/svx/source/engine3d/obj3d.cxx b/svx/source/engine3d/obj3d.cxx
index 959a39d9e67c..e1999f3b9a61 100644
--- a/svx/source/engine3d/obj3d.cxx
+++ b/svx/source/engine3d/obj3d.cxx
@@ -197,7 +197,7 @@ E3dObject::~E3dObject()
void E3dObject::SetSelected(bool bNew)
{
- if((bool)mbIsSelected != bNew)
+ if(mbIsSelected != bNew)
{
mbIsSelected = bNew;
}
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index 0dc400b43024..275b19b96910 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -2602,7 +2602,7 @@ void DbGridControl::AppendNew()
void DbGridControl::SetDesignMode(bool bMode)
{
- if ((bool) IsDesignMode() != bMode)
+ if (IsDesignMode() != bMode)
{
// adjust Enable/Disable for design mode so that the headerbar remains configurable
if (bMode)
diff --git a/svx/source/sdr/contact/displayinfo.cxx b/svx/source/sdr/contact/displayinfo.cxx
index 7904fa11a7bf..c3a219724d24 100644
--- a/svx/source/sdr/contact/displayinfo.cxx
+++ b/svx/source/sdr/contact/displayinfo.cxx
@@ -57,7 +57,7 @@ namespace sdr
void DisplayInfo::SetControlLayerProcessingActive(bool bDoProcess)
{
- if((bool)mbControlLayerProcessingActive != bDoProcess)
+ if(mbControlLayerProcessingActive != bDoProcess)
{
mbControlLayerProcessingActive = bDoProcess;
}
@@ -65,7 +65,7 @@ namespace sdr
void DisplayInfo::SetPageProcessingActive(bool bDoProcess)
{
- if((bool)mbPageProcessingActive != bDoProcess)
+ if(mbPageProcessingActive != bDoProcess)
{
mbPageProcessingActive = bDoProcess;
}
@@ -83,7 +83,7 @@ namespace sdr
void DisplayInfo::SetSubContentActive(bool bNew)
{
- if((bool)mbSubContentActive != bNew)
+ if(mbSubContentActive != bNew)
{
mbSubContentActive = bNew;
}
diff --git a/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx b/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx
index 871ede94b948..65f21ca3e438 100644
--- a/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx
+++ b/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx
@@ -438,7 +438,7 @@ bool ViewObjectContactOfPageGrid::isPrimitiveVisible(const DisplayInfo& rDisplay
return false;
}
- if(static_cast< ViewContactOfGrid& >(GetViewContact()).getFront() != (bool)rView.IsGridFront())
+ if(static_cast< ViewContactOfGrid& >(GetViewContact()).getFront() != rView.IsGridFront())
{
return false;
}
@@ -516,7 +516,7 @@ bool ViewObjectContactOfPageHelplines::isPrimitiveVisible(const DisplayInfo& rDi
return false;
}
- if(static_cast< ViewContactOfHelplines& >(GetViewContact()).getFront() != (bool)rView.IsHlplFront())
+ if(static_cast< ViewContactOfHelplines& >(GetViewContact()).getFront() != rView.IsHlplFront())
{
return false;
}
diff --git a/svx/source/sdr/overlay/overlayobject.cxx b/svx/source/sdr/overlay/overlayobject.cxx
index 1eda46d241d2..aae05f9f0b96 100644
--- a/svx/source/sdr/overlay/overlayobject.cxx
+++ b/svx/source/sdr/overlay/overlayobject.cxx
@@ -78,7 +78,7 @@ namespace sdr
void OverlayObject::allowAntiAliase(bool bNew)
{
- if(bNew != (bool)mbAllowsAntiAliase)
+ if(bNew != mbAllowsAntiAliase)
{
// remember new value
mbAllowsAntiAliase = bNew;
@@ -136,7 +136,7 @@ namespace sdr
void OverlayObject::setVisible(bool bNew)
{
- if(bNew != (bool)mbIsVisible)
+ if(bNew != mbIsVisible)
{
// remember new value
mbIsVisible = bNew;
@@ -148,7 +148,7 @@ namespace sdr
void OverlayObject::setHittable(bool bNew)
{
- if(bNew != (bool)mbIsHittable)
+ if(bNew != mbIsHittable)
{
// remember new value
mbIsHittable = bNew;
diff --git a/svx/source/svdraw/svddrgv.cxx b/svx/source/svdraw/svddrgv.cxx
index 787e7434ef9e..0a3a33f34b5a 100644
--- a/svx/source/svdraw/svddrgv.cxx
+++ b/svx/source/svdraw/svddrgv.cxx
@@ -884,7 +884,7 @@ void SdrDragView::SetMarkHandles(SfxViewShell* pOtherShell)
void SdrDragView::SetSolidDragging(bool bOn)
{
- if((bool)mbSolidDragging != bOn)
+ if(mbSolidDragging != bOn)
{
mbSolidDragging = bOn;
}
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx
index f0577a8b239e..0925ee583a62 100644
--- a/svx/source/svdraw/svdoashp.cxx
+++ b/svx/source/svdraw/svdoashp.cxx
@@ -2190,7 +2190,7 @@ void SdrObjCustomShape::SetVerticalWriting( bool bVertical )
if( pOutlinerParaObject )
{
- if(pOutlinerParaObject->IsVertical() != (bool)bVertical)
+ if(pOutlinerParaObject->IsVertical() != bVertical)
{
// get item settings
const SfxItemSet& rSet = GetObjectItemSet();
diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx
index 595c004b531e..a14a864e2ed9 100644
--- a/svx/source/svdraw/svdopath.cxx
+++ b/svx/source/svdraw/svdopath.cxx
@@ -1796,7 +1796,7 @@ void SdrPathObj::ImpForceKind()
{
basegfx::B2DPolygon aCandidate(maPathPolygon.getB2DPolygon(a));
- if((bool)IsClosed() != aCandidate.isClosed())
+ if(IsClosed() != aCandidate.isClosed())
{
// #i80213# really change polygon geometry; else e.g. the last point which
// needs to be identical with the first one will be missing when opening
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index abbdb1117585..6e75fd299131 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -1537,7 +1537,7 @@ void SdrTextObj::SetVerticalWriting(bool bVertical)
pOutlinerParaObject = GetOutlinerParaObject();
}
- if( pOutlinerParaObject && (pOutlinerParaObject->IsVertical() != (bool)bVertical) )
+ if( pOutlinerParaObject && (pOutlinerParaObject->IsVertical() != bVertical) )
{
// get item settings
const SfxItemSet& rSet = GetObjectItemSet();
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index 6a287d67eedb..794a4e779e15 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -1637,7 +1637,7 @@ OUString SdrPage::GetLayoutName() const
void SdrPage::SetInserted( bool bIns )
{
- if( (bool) mbInserted != bIns )
+ if( mbInserted != bIns )
{
mbInserted = bIns;
diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx
index 2164abba3d71..b450544e7ee4 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -1184,7 +1184,7 @@ vcl::Window* SdrPaintView::GetItemBrowser() const
void SdrPaintView::SetAnimationPause( bool bSet )
{
- if((bool)mbAnimationPause != bSet)
+ if(mbAnimationPause != bSet)
{
mbAnimationPause = bSet;
@@ -1271,7 +1271,7 @@ bool SdrPaintView::IsBufferedOutputAllowed() const
void SdrPaintView::SetBufferedOutputAllowed(bool bNew)
{
- if(bNew != (bool)mbBufferedOutputAllowed)
+ if(bNew != mbBufferedOutputAllowed)
{
mbBufferedOutputAllowed = bNew;
}
@@ -1284,7 +1284,7 @@ bool SdrPaintView::IsBufferedOverlayAllowed() const
void SdrPaintView::SetBufferedOverlayAllowed(bool bNew)
{
- if(bNew != (bool)mbBufferedOverlayAllowed)
+ if(bNew != mbBufferedOverlayAllowed)
{
mbBufferedOverlayAllowed = bNew;
}
@@ -1293,7 +1293,7 @@ void SdrPaintView::SetBufferedOverlayAllowed(bool bNew)
void SdrPaintView::SetPagePaintingAllowed(bool bNew)
{
- if(bNew != (bool)mbPagePaintingAllowed)
+ if(bNew != mbPagePaintingAllowed)
{
mbPagePaintingAllowed = bNew;
}