diff options
author | Mark Hung <marklh9@gmail.com> | 2018-08-10 18:33:20 +0800 |
---|---|---|
committer | Mark Hung <marklh9@gmail.com> | 2018-08-14 16:25:29 +0200 |
commit | a85565653d770418f1f5a8bbfd13dfbe890ac7bb (patch) | |
tree | 626fb53b0b7e281d5d9d76bbabe3c15dfad7e4cc /basegfx/source/tools/stringconversiontools.cxx | |
parent | 99e545dda9198bfcb4c63a2c7f1ba7fc4ded2a49 (diff) |
tdf#118825 move basegfx::internal::putNumberCharWithSpace
to anonymous namespace.
While basegfx::internal::putNumberCharWithSpace is only used in
exportToSvgD, move it into the anonymous in the same file for
later enhancement.
Change-Id: I6534ac39b2095ed2ba12acc114c75737ad8dacb6
Reviewed-on: https://gerrit.libreoffice.org/58847
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'basegfx/source/tools/stringconversiontools.cxx')
-rw-r--r-- | basegfx/source/tools/stringconversiontools.cxx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/basegfx/source/tools/stringconversiontools.cxx b/basegfx/source/tools/stringconversiontools.cxx index c657d4687bcf..b14fce0fb557 100644 --- a/basegfx/source/tools/stringconversiontools.cxx +++ b/basegfx/source/tools/stringconversiontools.cxx @@ -159,26 +159,6 @@ namespace basegfx return true; } - void putNumberCharWithSpace(OUStringBuffer& rStr, - double fValue, - double fOldValue, - bool bUseRelativeCoordinates ) - { - if( bUseRelativeCoordinates ) - fValue -= fOldValue; - - const sal_Int32 aLen( rStr.getLength() ); - if(aLen) - { - if( isOnNumberChar(rStr[aLen - 1], false) && - fValue >= 0.0 ) - { - rStr.append( ' ' ); - } - } - - rStr.append(fValue); - } } // namespace internal } |