diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-30 11:49:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-31 07:34:41 +0100 |
commit | 7fed35ff43d6e8c1e838c6fe582edd308692bab0 (patch) | |
tree | 57bc40dd19c70c36e5f3c9256e4a7b65af7926cc /svl/source/numbers | |
parent | 4cfcf965b5c95b1ba7dd454e9dda954e8315b8a9 (diff) |
loplugin:constantparam in svl,svtools
Change-Id: I0d7c1dff2646e483c866f547224c60838b221c4b
Reviewed-on: https://gerrit.libreoffice.org/44083
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source/numbers')
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 2 | ||||
-rw-r--r-- | svl/source/numbers/zformat.cxx | 14 |
2 files changed, 3 insertions, 13 deletions
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index f4c236827a01..24331b1dbea3 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -1852,7 +1852,7 @@ SvNumberformat* SvNumberFormatter::ImpInsertFormat( const css::i18n::NumberForma rCode.Index != NF_CURRENCY_1000DEC2_CCC ) { // strip surrounding [$...] on automatic currency if ( aCodeStr.indexOf( "[$" ) >= 0) - aCodeStr = SvNumberformat::StripNewCurrencyDelimiters( aCodeStr, false ); + aCodeStr = SvNumberformat::StripNewCurrencyDelimiters( aCodeStr ); else { if (LocaleDataWrapper::areChecksEnabled() && diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 34121edce041..0a9036193016 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -1899,8 +1899,7 @@ bool SvNumberformat::GetNewCurrencySymbol( OUString& rSymbol, } // static -OUString SvNumberformat::StripNewCurrencyDelimiters( const OUString& rStr, - bool bQuoteSymbol ) +OUString SvNumberformat::StripNewCurrencyDelimiters( const OUString& rStr ) { OUString aTmp; sal_Int32 nStartPos, nPos, nLen; @@ -1947,16 +1946,7 @@ OUString SvNumberformat::StripNewCurrencyDelimiters( const OUString& rStr, { nPos = nDash; } - if ( !bQuoteSymbol || rStr[ nStartPos ] == '"' ) - { - aTmp += rStr.copy( nStartPos, nPos - nStartPos ); - } - else - { - aTmp += "\""; - aTmp += rStr.copy( nStartPos, nPos - nStartPos ); - aTmp += "\""; - } + aTmp += rStr.copy( nStartPos, nPos - nStartPos ); nStartPos = nClose + 1; } } |