diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-08-15 17:19:54 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:11 -0300 |
commit | 9c5a9169cf0d710fe4cfab305e096623d8cbdaaf (patch) | |
tree | 002f379ca9e3be92e026821d9c389b39efb9b3c0 /tests/libsample/size.h | |
parent | b148ca6f876030a41ac7556ec5be2a7374e86bd5 (diff) |
Added test for typedef of unsigned short.
Diffstat (limited to 'tests/libsample/size.h')
-rw-r--r-- | tests/libsample/size.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libsample/size.h b/tests/libsample/size.h index 3915bf502..f13319007 100644 --- a/tests/libsample/size.h +++ b/tests/libsample/size.h @@ -183,12 +183,14 @@ inline const Size operator/(const Size& s, double div) } typedef double real; +typedef unsigned short ushort; class LIBSAMPLE_API SizeF { public: SizeF(real width, real height) : m_width(width), m_height(height) {} real width() { return m_width; } real height() { return m_height; } + static inline ushort passTypedefOfUnsignedShort(ushort value) { return value; } private: real m_width; real m_height; |