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.vajng...@collabora.co.uk> AuthorDate: Sat May 1 12:24:56 2021 +0900 Commit: Tomaž Vajngerl <qui...@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 <qui...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@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]) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits