[Libreoffice-commits] core.git: svgio/inc svgio/source

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Sat May 1 07:29:39 UTC 2021


 svgio/inc/SvgNumber.hxx             |    5 ++++-
 svgio/source/svgreader/svgtools.cxx |    5 -----
 2 files changed, 4 insertions(+), 6 deletions(-)

New commits:
commit 0d62ee66d6c02f0b3c38d1d0fa52f9cd86207a98
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Sat May 1 12:24:56 2021 +0900
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Sat May 1 09:28:56 2021 +0200

    svgio: move isPositive to the SvgNumber header file
    
    Change-Id: I05c7d59000ac7f14a5d34ed30273379f6fc31677
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114955
    Tested-by: Tomaž Vajngerl <quikee at gmail.com>
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/svgio/inc/SvgNumber.hxx b/svgio/inc/SvgNumber.hxx
index a4942719a2f4..9b6907a02031 100644
--- a/svgio/inc/SvgNumber.hxx
+++ b/svgio/inc/SvgNumber.hxx
@@ -100,7 +100,10 @@ public:
         return mbSet;
     }
 
-    bool isPositive() const;
+    bool isPositive() const
+    {
+        return basegfx::fTools::moreOrEqual(mfNumber, 0.0);
+    }
 
     // Only usable in cases, when the unit is not SvgUnit::percent, otherwise use method solve
     double solveNonPercentage(const InfoProvider& rInfoProvider) const;
diff --git a/svgio/source/svgreader/svgtools.cxx b/svgio/source/svgreader/svgtools.cxx
index beb735e2044e..66f89f2d60e1 100644
--- a/svgio/source/svgreader/svgtools.cxx
+++ b/svgio/source/svgreader/svgtools.cxx
@@ -267,11 +267,6 @@ namespace svgio::svgreader
             return 0.0;
         }
 
-        bool SvgNumber::isPositive() const
-        {
-            return basegfx::fTools::moreOrEqual(mfNumber, 0.0);
-        }
-
         void skip_char(std::u16string_view rCandidate, sal_Unicode nChar, sal_Int32& nPos, const sal_Int32 nLen)
         {
             while(nPos < nLen && nChar == rCandidate[nPos])


More information about the Libreoffice-commits mailing list