summaryrefslogtreecommitdiffstats
path: root/cui
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 /cui
parentsc: remove unused private field (diff)
downloadcore-572e9cde744e2b482a04ff4b457ad2cfde5f70d2.tar.gz
core-572e9cde744e2b482a04ff4b457ad2cfde5f70d2.zip
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 'cui')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx2
-rw-r--r--cui/source/tabpages/chardlg.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index 7c6dfe4083c7..cbab8a5d718d 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -382,7 +382,7 @@ void SpellDialog::UpdateBoxes_Impl()
m_pExplainLink->Hide();
}
- if (bOldShowExplain != (bool) m_pExplainLink->IsVisible() || bOldShowGrammar != (bool) m_pCheckGrammarCB->IsVisible())
+ if (bOldShowExplain != m_pExplainLink->IsVisible() || bOldShowGrammar != m_pCheckGrammarCB->IsVisible())
setOptimalLayoutSize();
}
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index f0ee84891b5b..744b98135ada 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -2257,7 +2257,7 @@ bool SvxCharEffectsPage::FillItemSet( SfxItemSet* rSet )
if ( pOld )
{
const SvxWordLineModeItem& rItem = *static_cast<const SvxWordLineModeItem*>(pOld);
- if ( rItem.GetValue() == (bool) m_pIndividualWordsBtn->IsChecked() )
+ if ( rItem.GetValue() == m_pIndividualWordsBtn->IsChecked() )
bChanged = false;
}