diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-03 17:20:31 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-03 17:20:31 -0300 |
commit | e01eba39663c2f7d0f1137ab30ed18891394afb5 (patch) | |
tree | cbd3d28de96353e870258f183b9df3b4948af957 /tests/libsample/point.h | |
parent | 2b54063938045567453daaa17c33b323e68b890f (diff) |
updated Point tests with cases for returning Point pointer,
const pointer and const reference
Diffstat (limited to 'tests/libsample/point.h')
-rw-r--r-- | tests/libsample/point.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/libsample/point.h b/tests/libsample/point.h index 6c8638742..be73e4d43 100644 --- a/tests/libsample/point.h +++ b/tests/libsample/point.h @@ -51,6 +51,11 @@ public: void setX(double x) { m_x = x; } void setY(double y) { m_y = y; } + Point* copy() const; + + const Point& getConstReferenceToSelf() const { return *this; } + const Point* getSelf() const { return this; } + bool operator==(const Point& other); Point operator+(const Point& other); Point operator-(const Point& other); |