diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-08-02 13:06:58 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:07 -0300 |
commit | 6bb2780c978d93b6ebe7b423adda27e4292467f2 (patch) | |
tree | 975bb03485f15e28e514a5333fdced6f8a2c246f /tests/libsample/point.h | |
parent | f3b6eeccd43fc8b81bb7fe48424b6f4c6e4e454d (diff) |
Added test for removed pointer out argument.
Diffstat (limited to 'tests/libsample/point.h')
-rw-r--r-- | tests/libsample/point.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/libsample/point.h b/tests/libsample/point.h index cc7a1bc5a..45b1edd39 100644 --- a/tests/libsample/point.h +++ b/tests/libsample/point.h @@ -43,6 +43,11 @@ public: inline void setXAsUint(unsigned int x) { m_x = x; } inline void setYAsUint(unsigned int y) { m_y = y; } + // This method could simply return the midpoint, + // but the interesting part of the test is to set the + // result in the pointer argument. + void midpoint(const Point& other, Point* midpoint) const; + Point* copy() const; inline const Point& getConstReferenceToSelf() const { return *this; } @@ -86,4 +91,3 @@ LIBSAMPLE_API Point transmuteComplexIntoPoint(const Complex& cpx); LIBSAMPLE_API Point operator*(const Point& pt, double multiplier); #endif // POINT_H - |