aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/size.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-07-20 14:00:44 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-18 15:21:20 -0300
commitb4c007c3ee9932b7a384b2b4fcdc8b4be2dfbad9 (patch)
treee106cc99a076d3c4677b6afb4857fcb36b1351f9 /tests/libsample/size.h
parentda5a88b3b53b4769e77eff1d48cc9a2c7152f6c2 (diff)
fixed tests exported symbols.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/libsample/size.h')
-rw-r--r--tests/libsample/size.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/libsample/size.h b/tests/libsample/size.h
index a1431a8b0..c5bf2b5cb 100644
--- a/tests/libsample/size.h
+++ b/tests/libsample/size.h
@@ -43,12 +43,12 @@ public:
Size(double width = 0.0, double height = 0.0) : m_width(width), m_height(height) {}
~Size() {}
- double width() { return m_width; }
- void setWidth(double width) { m_width = width; }
- double height() { return m_height; }
- void setHeight(double height) { m_height = height; }
+ inline double width() { return m_width; }
+ inline void setWidth(double width) { m_width = width; }
+ inline double height() { return m_height; }
+ inline void setHeight(double height) { m_height = height; }
- double calculateArea() const { return m_width * m_height; }
+ inline double calculateArea() const { return m_width * m_height; }
// Comparison Operators
inline bool operator==(const Size& other)
@@ -92,28 +92,28 @@ public:
inline bool operator>=(double area) { return calculateArea() >= area; }
// Arithmetic Operators
- Size& operator+=(const Size& s)
+ inline Size& operator+=(const Size& s)
{
m_width += s.m_width;
m_height += s.m_height;
return *this;
}
- Size& operator-=(const Size& s)
+ inline Size& operator-=(const Size& s)
{
m_width -= s.m_width;
m_height -= s.m_height;
return *this;
}
- Size& operator*=(double mult)
+ inline Size& operator*=(double mult)
{
m_width *= mult;
m_height *= mult;
return *this;
}
- Size& operator/=(double div)
+ inline Size& operator/=(double div)
{
m_width /= div;
m_height /= div;