From 87f9e8945fde37182bec1e674dd6ccee4133209c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 7 Jan 2017 20:58:25 +0000 Subject: default copy ctor and assignment operator are good enough and block default move equivalents Change-Id: Ib8a1050803446c2e099f66602fae0465bd8165cf --- include/basegfx/point/b2ipoint.hxx | 12 ------------ include/basegfx/tuple/b2ituple.hxx | 20 -------------------- 2 files changed, 32 deletions(-) (limited to 'include/basegfx') diff --git a/include/basegfx/point/b2ipoint.hxx b/include/basegfx/point/b2ipoint.hxx index e092e35a6b1f..7a930d69eb5e 100644 --- a/include/basegfx/point/b2ipoint.hxx +++ b/include/basegfx/point/b2ipoint.hxx @@ -60,15 +60,6 @@ namespace basegfx : B2ITuple(nX, nY) {} - /** Create a copy of a 2D Point - - @param rPoint - The 2D Point which will be copied. - */ - B2IPoint(const B2IPoint& rPoint) - : B2ITuple(rPoint) - {} - /** constructor with tuple to allow copy-constructing from B2ITuple-based classes */ @@ -76,9 +67,6 @@ namespace basegfx : B2ITuple(rTuple) {} - ~B2IPoint() - {} - /** *=operator to allow usage from B2IPoint, too */ B2IPoint& operator*=( const B2IPoint& rPnt ) diff --git a/include/basegfx/tuple/b2ituple.hxx b/include/basegfx/tuple/b2ituple.hxx index 7c859d5def55..f8df10fe2851 100644 --- a/include/basegfx/tuple/b2ituple.hxx +++ b/include/basegfx/tuple/b2ituple.hxx @@ -66,19 +66,6 @@ namespace basegfx mnY( fY ) {} - /** Create a copy of a 2D Tuple - - @param rTup - The 2D Tuple which will be copied. - */ - B2ITuple(const B2ITuple& rTup) - : mnX( rTup.mnX ), - mnY( rTup.mnY ) - {} - - ~B2ITuple() - {} - /// Get X-Coordinate of 2D Tuple sal_Int32 getX() const { @@ -185,13 +172,6 @@ namespace basegfx { return !(*this == rTup); } - - B2ITuple& operator=( const B2ITuple& rTup ) - { - mnX = rTup.mnX; - mnY = rTup.mnY; - return *this; - } }; // external operators -- cgit