summaryrefslogtreecommitdiff
path: root/editeng
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 /editeng
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 'editeng')
-rw-r--r--editeng/source/items/frmitems.cxx4
-rw-r--r--editeng/source/items/textitem.cxx12
2 files changed, 8 insertions, 8 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index a17b172c523b..61bd4a58f3a1 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -467,7 +467,7 @@ bool SvxLRSpaceItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
break;
case MID_FIRST_AUTO:
- rVal <<= (bool) IsAutoFirst();
+ rVal <<= IsAutoFirst();
break;
default:
@@ -1196,7 +1196,7 @@ bool SvxProtectItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
return false;
}
- rVal <<= (bool) bValue;
+ rVal <<= bValue;
return true;
}
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index dbab08c88270..f3380c46fe89 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -509,7 +509,7 @@ bool SvxPostureItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
switch( nMemberId )
{
case MID_ITALIC:
- rVal <<= (bool)GetBoolValue();
+ rVal <<= GetBoolValue();
break;
case MID_POSTURE:
rVal <<= vcl::unohelper::ConvertFontSlant(GetValue());
@@ -645,7 +645,7 @@ bool SvxWeightItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
switch( nMemberId )
{
case MID_BOLD :
- rVal <<= (bool)GetBoolValue();
+ rVal <<= GetBoolValue();
break;
case MID_WEIGHT:
{
@@ -1274,7 +1274,7 @@ bool SvxTextLineItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
switch(nMemberId)
{
case MID_TEXTLINED:
- rVal <<= (bool)GetBoolValue();
+ rVal <<= GetBoolValue();
break;
case MID_TL_STYLE:
rVal <<= (sal_Int16)(GetValue());
@@ -1283,7 +1283,7 @@ bool SvxTextLineItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
rVal <<= (sal_Int32)( mColor.GetColor() );
break;
case MID_TL_HASCOLOR:
- rVal <<= (bool) !mColor.GetTransparency();
+ rVal <<= !mColor.GetTransparency();
break;
}
return true;
@@ -1475,7 +1475,7 @@ bool SvxCrossedOutItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
switch(nMemberId)
{
case MID_CROSSED_OUT:
- rVal <<= (bool) GetBoolValue();
+ rVal <<= GetBoolValue();
break;
case MID_CROSS_OUT:
rVal <<= (sal_Int16)(GetValue());
@@ -2997,7 +2997,7 @@ bool SvxCharRotateItem::QueryValue( css::uno::Any& rVal,
SvxTextRotateItem::QueryValue(rVal, nMemberId);
break;
case MID_FITTOLINE:
- rVal <<= (bool) IsFitToLine();
+ rVal <<= IsFitToLine();
break;
default:
bRet = false;