summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-25 10:34:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-26 12:15:53 +0200
commit93bf0b1ba11c7710f80a7773eaf0b5ca816d82a7 (patch)
tree13245a24edfa1aab9bc52c2f1f4ef44ae448a2c8 /svx/source/tbxctrls
parentca865af23656f52008713709b3efee0e151d0303 (diff)
clang-tidy readability-simplify-boolean-expr in svx
Change-Id: I5190e453edd9fc2eda57f730834567e8e214ff16 Reviewed-on: https://gerrit.libreoffice.org/36931 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 41b4e8ed3f54..4eb42448dd37 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -2018,10 +2018,7 @@ SvxCurrencyList_Impl::SvxCurrencyList_Impl(
m_pCurrencyLb->InsertEntry( *i );
const NfCurrencyEntry& aCurrencyEntry = rCurrencyTable[ rCurrencyIndex ];
- if ( nPos < nLen )
- bIsSymbol = false;
- else
- bIsSymbol = true;
+ bIsSymbol = nPos >= nLen;
sal_uInt16 nDefaultFormat = aFormatter.GetCurrencyFormatStrings( aStringsDtor, aCurrencyEntry, bIsSymbol );
const OUString& rFormatStr = aStringsDtor[ nDefaultFormat ];