diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-02 12:02:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-03 06:57:24 +0100 |
commit | ee69f5e0758a2a1842362bf403dc62746437f358 (patch) | |
tree | 84c157f09ac3ae45a98563f2541070f388be5d37 /include | |
parent | 08b8b55d9d540fcd29d18dd8883d24de457e2675 (diff) |
drop old tools/gen methods
Change-Id: I9b9d1503b476f84e91fa283e523875b562c6b837
Reviewed-on: https://gerrit.libreoffice.org/50166
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/gen.hxx | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx index 38f80404e1f6..56ef15c2c742 100644 --- a/include/tools/gen.hxx +++ b/include/tools/gen.hxx @@ -102,8 +102,8 @@ public: long getX() const { return X(); } long getY() const { return Y(); } - void setX(long nX) { X() = nX; } - void setY(long nY) { Y() = nY; } + void setX(long nX) { nA = nX; } + void setY(long nY) { nB = nY; } Pair const & toPair() const { return *this; } Pair & toPair() { return *this; } @@ -193,15 +193,13 @@ public: long Width() const { return nA; } long Height() const { return nB; } - long& Width() { return nA; } - long& Height() { return nB; } long AdjustWidth( long n ) { nA += n; return nA; } long AdjustHeight( long n ) { nB += n; return nB; } long getWidth() const { return Width(); } long getHeight() const { return Height(); } - void setWidth(long nWidth) { Width() = nWidth; } - void setHeight(long nHeight) { Height() = nHeight; } + void setWidth(long nWidth) { nA = nWidth; } + void setHeight(long nHeight) { nB = nHeight; } Pair const & toPair() const { return *this; } Pair & toPair() { return *this; } @@ -390,11 +388,6 @@ public: long Top() const { return nTop; } long Bottom() const { return nBottom; } - long& Left() { return nLeft; } - long& Right() { return nRight; } - long& Top() { return nTop; } - long& Bottom() { return nBottom; } - void SetLeft(long v) { nLeft = v; } void SetRight(long v) { nRight = v; } void SetTop(long v) { nTop = v; } |