summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-01 08:24:20 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-01 12:15:27 +0200
commitfe727997949d94cda5e867b7d2f3cb68f7b3a4b8 (patch)
tree923371b5c97e4103ab46adaf57b33ecd7ac5d2df /cui
parent04073f55c9eaa7e8049bdc3601ad25f9768a647c (diff)
cid#1615991 Logically dead code
revealed as such since: commit a1be5ede8e7a8042683efa10b823d952e1bd9513 Author: Noel Grandin <noel.grandin@collabora.co.uk> AuthorDate: Wed Jul 31 07:41:52 2024 +0200 reduce number of GetItem calls Change-Id: I7856c0cd035f1225f629f8f2d1e275928fabff05 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171368 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/numfmt.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx
index 584c7acdd5b0..d078e82f9f85 100644
--- a/cui/source/tabpages/numfmt.cxx
+++ b/cui/source/tabpages/numfmt.cxx
@@ -422,10 +422,7 @@ void SvxNumberFormatTabPage::Reset( const SfxItemSet* rSet )
if ( const SfxBoolItem* pBoolItem = rSet->GetItemIfSet( SID_ATTR_NUMBERFORMAT_SOURCE ))
{
- if ( pBoolItem )
- m_xCbSourceFormat->set_active(pBoolItem->GetValue());
- else
- m_xCbSourceFormat->set_active( false );
+ m_xCbSourceFormat->set_active(pBoolItem->GetValue());
m_xCbSourceFormat->set_sensitive(true);
m_xCbSourceFormat->show();
}