summaryrefslogtreecommitdiff
path: root/vcl/source/helper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-26 09:36:26 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-02-26 08:24:32 +0000
commit911ae0aeca443fb4b5e400ae0f939567b580e443 (patch)
tree1b7ef72f8f4c50c9ab7a552743a95b329912a0bc /vcl/source/helper
parent63e2aec922ec8c0a9011b98dbfd3dac295f473af (diff)
loplugin:unuseddefaultparams in /include/vcl
Change-Id: I36daccd90bfa6ba0ee8b9e76bff2bd8494155a04 Reviewed-on: https://gerrit.libreoffice.org/22710 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/helper')
-rw-r--r--vcl/source/helper/strhelper.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/helper/strhelper.cxx b/vcl/source/helper/strhelper.cxx
index 67b2f611398e..f8761336bb8f 100644
--- a/vcl/source/helper/strhelper.cxx
+++ b/vcl/source/helper/strhelper.cxx
@@ -303,7 +303,7 @@ OUString WhitespaceToSpace( const OUString& rLine, bool bProtect )
return OUString(*pBuffer == ' ' ? pBuffer+1 : pBuffer);
}
-OString WhitespaceToSpace(const OString& rLine, bool bProtect)
+OString WhitespaceToSpace(const OString& rLine)
{
sal_Int32 nLen = rLine.getLength();
if (!nLen)
@@ -334,11 +334,11 @@ OString WhitespaceToSpace(const OString& rLine, bool bProtect)
if( *pRun )
pRun++;
}
- else if( bProtect && *pRun == '`' )
+ else if( *pRun == '`' )
CopyUntil( pLeap, pRun, '`', true );
- else if( bProtect && *pRun == '\'' )
+ else if( *pRun == '\'' )
CopyUntil( pLeap, pRun, '\'', true );
- else if( bProtect && *pRun == '"' )
+ else if( *pRun == '"' )
CopyUntil( pLeap, pRun, '"', true );
else
{