summaryrefslogtreecommitdiff
path: root/chart2
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 /chart2
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 'chart2')
-rw-r--r--chart2/source/controller/dialogs/tp_Scale.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/dialogs/tp_Scale.cxx b/chart2/source/controller/dialogs/tp_Scale.cxx
index 29ff3261a810..a0b8070f0cff 100644
--- a/chart2/source/controller/dialogs/tp_Scale.cxx
+++ b/chart2/source/controller/dialogs/tp_Scale.cxx
@@ -313,7 +313,7 @@ void ScaleTabPage::Reset(const SfxItemSet* rInAttrs)
const SfxPoolItem *pPoolItem = nullptr;
if (rInAttrs->GetItemState(SCHATTR_AXIS_ALLOW_DATEAXIS, true, &pPoolItem) == SfxItemState::SET)
- m_bAllowDateAxis = (bool) static_cast<const SfxBoolItem*>(pPoolItem)->GetValue();
+ m_bAllowDateAxis = static_cast<const SfxBoolItem*>(pPoolItem)->GetValue();
m_nAxisType=chart2::AxisType::REALNUMBER;
if (rInAttrs->GetItemState(SCHATTR_AXISTYPE, true, &pPoolItem) == SfxItemState::SET)
m_nAxisType = (int) static_cast<const SfxInt32Item*>(pPoolItem)->GetValue();
@@ -323,7 +323,7 @@ void ScaleTabPage::Reset(const SfxItemSet* rInAttrs)
{
bool bAutoDateAxis = false;
if (rInAttrs->GetItemState(SCHATTR_AXIS_AUTO_DATEAXIS, true, &pPoolItem) == SfxItemState::SET)
- bAutoDateAxis = (bool) static_cast<const SfxBoolItem*>(pPoolItem)->GetValue();
+ bAutoDateAxis = static_cast<const SfxBoolItem*>(pPoolItem)->GetValue();
sal_uInt16 nPos = 0;
if( m_nAxisType==chart2::AxisType::DATE )