summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-30 11:49:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-31 07:34:41 +0100
commit7fed35ff43d6e8c1e838c6fe582edd308692bab0 (patch)
tree57bc40dd19c70c36e5f3c9256e4a7b65af7926cc /svl
parent4cfcf965b5c95b1ba7dd454e9dda954e8315b8a9 (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')
-rw-r--r--svl/source/misc/urihelper.cxx3
-rw-r--r--svl/source/numbers/zforlist.cxx2
-rw-r--r--svl/source/numbers/zformat.cxx14
3 files changed, 4 insertions, 15 deletions
diff --git a/svl/source/misc/urihelper.cxx b/svl/source/misc/urihelper.cxx
index 6da98476fa06..fc5e6322ec02 100644
--- a/svl/source/misc/urihelper.cxx
+++ b/svl/source/misc/urihelper.cxx
@@ -60,7 +60,6 @@ OUString URIHelper::SmartRel2Abs(INetURLObject const & rTheBaseURIRef,
INetURLObject::EncodeMechanism eEncodeMechanism,
INetURLObject::DecodeMechanism eDecodeMechanism,
rtl_TextEncoding eCharset,
- bool bRelativeNonURIs,
FSysStyle eStyle)
{
// Backwards compatibility:
@@ -78,7 +77,7 @@ OUString URIHelper::SmartRel2Abs(INetURLObject const & rTheBaseURIRef,
bIgnoreFragment,
eEncodeMechanism,
eCharset,
- bRelativeNonURIs,
+ false/*bRelativeNonURIs*/,
eStyle);
if (bCheckFileExists
&& !bWasAbsolute
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;
}
}