From a6f5770b4aaaa6506a22eae0d641ad48f9b6d239 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 3 Jul 2015 16:53:45 +0200 Subject: Revert "loplugin:unusedmethods sax,shell,stoc,basegfx" The basegfx changes appear to break Windows builds. This reverts commit 3b32c5898ff4e744d3f18b00421b433500426d74. --- include/basegfx/tuple/b2i64tuple.hxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/basegfx/tuple/b2i64tuple.hxx') diff --git a/include/basegfx/tuple/b2i64tuple.hxx b/include/basegfx/tuple/b2i64tuple.hxx index e4b40acff289..2d0bfcf6d485 100644 --- a/include/basegfx/tuple/b2i64tuple.hxx +++ b/include/basegfx/tuple/b2i64tuple.hxx @@ -91,6 +91,18 @@ namespace basegfx return mnY; } + /// Set X-Coordinate of 2D Tuple + void setX(sal_Int64 fX) + { + mnX = fX; + } + + /// Set Y-Coordinate of 2D Tuple + void setY(sal_Int64 fY) + { + mnY = fY; + } + /// Array-access to 2D Tuple const sal_Int64& operator[] (int nPos) const { @@ -159,6 +171,8 @@ namespace basegfx return B2I64Tuple(-mnX, -mnY); } + bool equalZero() const { return mnX == 0 && mnY == 0; } + bool operator==( const B2I64Tuple& rTup ) const { return this == &rTup || (rTup.mnX == mnX && rTup.mnY == mnY); -- cgit v1.2.3