summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2022-05-10 21:06:22 +0900
committerTomaž Vajngerl <quikee@gmail.com>2022-05-11 10:12:59 +0200
commit04669a3a466d34d3452c88f4712b6ea6befb4d53 (patch)
tree449e6a8a70200fb03c471dc28fb2e11edfb09540 /basegfx/source
parent24417d8c3c9e1c619936e85fa7a20481a24e3530 (diff)
basegfx: generalize B2DRange and B2IRange with Range2D template
Also add and/or re-arrange B2DRange and B2IRange tests Change-Id: I0f582b30c92776ffbab8b69810ec855da0931714 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134111 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/range/b2drange.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/basegfx/source/range/b2drange.cxx b/basegfx/source/range/b2drange.cxx
index be025cc64b1d..1f20cce90a48 100644
--- a/basegfx/source/range/b2drange.cxx
+++ b/basegfx/source/range/b2drange.cxx
@@ -23,12 +23,12 @@
namespace basegfx
{
- B2DRange::B2DRange( const B2IRange& rRange )
+ B2DRange::B2DRange(const B2IRange& rRange)
{
- if( !rRange.isEmpty() )
+ if (!rRange.isEmpty())
{
- maRangeX = MyBasicRange(rRange.getMinX());
- maRangeY = MyBasicRange(rRange.getMinY());
+ maRangeX = basegfx::BasicRange<ValueType, TraitsType>(rRange.getMinX());
+ maRangeY = basegfx::BasicRange<ValueType, TraitsType>(rRange.getMinY());
maRangeX.expand(rRange.getMaxX());
maRangeY.expand(rRange.getMaxY());
@@ -48,9 +48,9 @@ namespace basegfx
}
}
- B2DRange& B2DRange::operator*=( const ::basegfx::B2DHomMatrix& rMat )
+ B2DRange& B2DRange::operator*=(const basegfx::B2DHomMatrix& rMatrix)
{
- transform(rMat);
+ transform(rMatrix);
return *this;
}