aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/pointf.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-08-02 13:06:58 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:17:07 -0300
commit6bb2780c978d93b6ebe7b423adda27e4292467f2 (patch)
tree975bb03485f15e28e514a5333fdced6f8a2c246f /tests/libsample/pointf.h
parentf3b6eeccd43fc8b81bb7fe48424b6f4c6e4e454d (diff)
Added test for removed pointer out argument.
Diffstat (limited to 'tests/libsample/pointf.h')
-rw-r--r--tests/libsample/pointf.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/libsample/pointf.h b/tests/libsample/pointf.h
index 832c3b323..f5ad11659 100644
--- a/tests/libsample/pointf.h
+++ b/tests/libsample/pointf.h
@@ -41,8 +41,13 @@ public:
inline void setX(double x) { m_x = x; }
inline void setY(double 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 PointF& other, PointF* midpoint) const;
+
// The != operator is not implemented for the purpose of testing
- // for the absense of the __ne__ method in the Python binding.
+ // for the absence of the __ne__ method in the Python binding.
bool operator==(const PointF& other);
PointF operator+(const PointF& other);
@@ -75,4 +80,3 @@ LIBSAMPLE_API bool operator!(const PointF& pt);
LIBSAMPLE_API PointF operator*(const PointF& pt, double multiplier);
#endif // POINTF_H
-