diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-10-10 10:52:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-10-10 10:53:45 +0100 |
commit | 6a45259834818dc819f4eb63043d0ea2b3416ac2 (patch) | |
tree | 78a83d2060d84b697fe7a48d5b7e48c92d06c3a7 /sal/qa/rtl/math/test-rtl-math.cxx | |
parent | a62e3205030d17a402255c9a84d0f484c18d25a9 (diff) |
WaE: -Wsign-promo
Diffstat (limited to 'sal/qa/rtl/math/test-rtl-math.cxx')
-rw-r--r-- | sal/qa/rtl/math/test-rtl-math.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sal/qa/rtl/math/test-rtl-math.cxx b/sal/qa/rtl/math/test-rtl-math.cxx index 8dc463a4d8bf..cde5d3efa2f8 100644 --- a/sal/qa/rtl/math/test-rtl-math.cxx +++ b/sal/qa/rtl/math/test-rtl-math.cxx @@ -38,6 +38,25 @@ #include "rtl/ustring.hxx" #include "sal/types.h" +CPPUNIT_NS_BEGIN + +template<> struct assertion_traits<rtl_math_ConversionStatus> +{ + static bool equal( const rtl_math_ConversionStatus& x, const rtl_math_ConversionStatus& y ) + { + return x == y; + } + + static std::string toString( const rtl_math_ConversionStatus& x ) + { + OStringStream ost; + ost << static_cast<unsigned int>(x); + return ost.str(); + } +}; + +CPPUNIT_NS_END + namespace { class Test: public CppUnit::TestFixture { |