[Libreoffice-commits] core.git: basegfx/source

Zsolt Bölöny bolony.zsolt at gmail.com
Sun Jan 11 22:44:31 PST 2015


 basegfx/source/inc/stringconversiontools.hxx   |    6 ------
 basegfx/source/polygon/b2dsvgpolypolygon.cxx   |    4 ++--
 basegfx/source/tools/stringconversiontools.cxx |    2 +-
 3 files changed, 3 insertions(+), 9 deletions(-)

New commits:
commit babe4ab629d476bbddbacb85c33436ba09655aea
Author: Zsolt Bölöny <bolony.zsolt at gmail.com>
Date:   Sat Jan 10 17:49:34 2015 +0100

    Removed lcl_putNumberChar() from basegfx.
    
    It just calls OUStringBuffer.append() and doesn't do anything special.
    
    Change-Id: Ie59a797a8d0d24cfab826516e2b5c4e58f90dd01
    Reviewed-on: https://gerrit.libreoffice.org/13850
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/basegfx/source/inc/stringconversiontools.hxx b/basegfx/source/inc/stringconversiontools.hxx
index d759bbb..04b9f83 100644
--- a/basegfx/source/inc/stringconversiontools.hxx
+++ b/basegfx/source/inc/stringconversiontools.hxx
@@ -71,12 +71,6 @@ namespace basegfx
         void lcl_skipDouble(sal_Int32&              io_rPos,
                             const OUString&  rStr);
 
-        inline void lcl_putNumberChar( OUStringBuffer& rStr,
-                                double                 fValue )
-        {
-            rStr.append( fValue );
-        }
-
         void lcl_putNumberCharWithSpace( OUStringBuffer& rStr,
                                             double              fValue,
                                             double              fOldValue,
diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
index 5b0c3c8..fac3b78 100644
--- a/basegfx/source/polygon/b2dsvgpolypolygon.cxx
+++ b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
@@ -679,9 +679,9 @@ namespace basegfx
                     aResult.append(' ');
                 }
 
-                ::basegfx::internal::lcl_putNumberChar(aResult, aPoint.getX());
+                aResult.append(aPoint.getX());
                 aResult.append(',');
-                ::basegfx::internal::lcl_putNumberChar(aResult, aPoint.getY());
+                aResult.append(aPoint.getY());
             }
 
             return aResult.makeStringAndClear();
diff --git a/basegfx/source/tools/stringconversiontools.cxx b/basegfx/source/tools/stringconversiontools.cxx
index df37126..040c358 100644
--- a/basegfx/source/tools/stringconversiontools.cxx
+++ b/basegfx/source/tools/stringconversiontools.cxx
@@ -176,7 +176,7 @@ namespace basegfx
                 }
             }
 
-            lcl_putNumberChar(rStr, fValue);
+            rStr.append(fValue);
         }
 
     } // namespace internal


More information about the Libreoffice-commits mailing list