diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-05-01 12:24:56 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-05-01 09:28:56 +0200 |
commit | 0d62ee66d6c02f0b3c38d1d0fa52f9cd86207a98 (patch) | |
tree | 15e972f6997a8fc71063460f63f8cedf42f99495 /svgio | |
parent | fd50995350e613796794593cd216b7432fed98b6 (diff) |
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@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svgio')
-rw-r--r-- | svgio/inc/SvgNumber.hxx | 5 | ||||
-rw-r--r-- | svgio/source/svgreader/svgtools.cxx | 5 |
2 files changed, 4 insertions, 6 deletions
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]) |