diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-09-03 16:16:26 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-09-03 17:16:59 -0300 |
commit | 5d23ed3a8801b7152e2c3a601e3bb64595d79046 (patch) | |
tree | c78c2e43cc262f070b9d3c2768c3e99563a4a403 /tests/libsample/point.h | |
parent | 3fed4510716ad6444c77ecd50466f514e1f03848 (diff) |
Avoid call functions when an error occurs on argument conversion.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'tests/libsample/point.h')
-rw-r--r-- | tests/libsample/point.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libsample/point.h b/tests/libsample/point.h index 585f94991..cfd1f251d 100644 --- a/tests/libsample/point.h +++ b/tests/libsample/point.h @@ -52,6 +52,8 @@ public: inline void setX(double x) { m_x = x; } inline void setY(double y) { m_y = y; } + inline void setXAsUint(unsigned int x) { m_x = x; } + inline void setYAsUint(unsigned int y) { m_y = y; } Point* copy() const; |