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/zformat.cxx | |
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/zformat.cxx')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
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; } } |