summaryrefslogtreecommitdiff
path: root/basegfx/source/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-31 15:43:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-01 07:13:23 +0100
commit094542511fae905106a9daa19c049ff669e61bdc (patch)
treef94a7da351d61b04df92cc42ad855d3e0cb91371 /basegfx/source/inc
parent1a284d1f98069f55d5211882431f516691c2a6f0 (diff)
loplugin:constantparam in basegfx
Change-Id: Ieabdd6f8d76cfc2ed75f2ec618def6591a9adc93 Reviewed-on: https://gerrit.libreoffice.org/44130 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx/source/inc')
-rw-r--r--basegfx/source/inc/stringconversiontools.hxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/basegfx/source/inc/stringconversiontools.hxx b/basegfx/source/inc/stringconversiontools.hxx
index b49804849855..f2ccb1ac3324 100644
--- a/basegfx/source/inc/stringconversiontools.hxx
+++ b/basegfx/source/inc/stringconversiontools.hxx
@@ -36,22 +36,20 @@ namespace basegfx
const sal_Int32 nLen);
inline bool isOnNumberChar(const sal_Unicode aChar,
- bool bSignAllowed,
- bool bDotAllowed)
+ bool bSignAllowed)
{
const bool bPredicate( (u'0' <= aChar && u'9' >= aChar)
|| (bSignAllowed && u'+' == aChar)
|| (bSignAllowed && u'-' == aChar)
- || (bDotAllowed && u'.' == aChar));
+ || (u'.' == aChar));
return bPredicate;
}
inline bool isOnNumberChar(const OUString& rStr,
- const sal_Int32 nPos,
- bool bSignAllowed = true)
+ const sal_Int32 nPos)
{
- return isOnNumberChar(rStr[nPos], bSignAllowed, true);
+ return isOnNumberChar(rStr[nPos], true/*bSignAllowed*/);
}
bool getDoubleChar(double& o_fRetval,