path: root/basegfx/source/tuple/b2dtuple.cxx
diff options
authorTomaž Vajngerl <>2021-05-12 19:00:32 +0900
committerTomaž Vajngerl <>2021-06-17 01:55:56 +0200
commitc703b2d22c3f45825d9c9d790c3b5a4b6f97e776 (patch)
tree74736ac1b3cc558c2fa37c028a6d8180bc749180 /basegfx/source/tuple/b2dtuple.cxx
parente337b9d92c6d5184e160df66885f53ebc4835218 (diff)
basegfx: generalise tuples with template class Tuple2D and Tuple3D
B2DTuple2D, B2ITuple2D and B2I64Tuple share a lot in common so we can generalise it as a template class. The same goes for the 3D variants - B3DTuple and B3ITuple. This is the initial attempt, but doesn't yet generalise all that is possible. Add some tests for the tuple variants that test the behaviour of overloaded operators and other common methods. Change-Id: Iee5ed15d58ea88e65ee7854bd05a87ceab22023d Reviewed-on: Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <>
Diffstat (limited to 'basegfx/source/tuple/b2dtuple.cxx')
1 files changed, 1 insertions, 2 deletions
diff --git a/basegfx/source/tuple/b2dtuple.cxx b/basegfx/source/tuple/b2dtuple.cxx
index c894639a1511..18a93f8d731c 100644
--- a/basegfx/source/tuple/b2dtuple.cxx
+++ b/basegfx/source/tuple/b2dtuple.cxx
@@ -30,8 +30,7 @@ namespace basegfx
B2DTuple::B2DTuple(const B2ITuple& rTup)
- : mfX( rTup.getX() ),
- mfY( rTup.getY() )
+ : Tuple2D(rTup.getX(), rTup.getY())
B2ITuple fround(const B2DTuple& rTup)