diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-10-09 21:23:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-10-10 08:51:15 +0100 |
commit | e8bbb76827dd7a0e30d7d1db34a812a84d85f390 (patch) | |
tree | e00f9726de86b80843a2bdd68857c793e70c4a0c /editeng/qa/items | |
parent | 2d25e3c354bfed19ee5c6f596cf57eb58ead9162 (diff) |
ensure correct export size type in stream operation
Diffstat (limited to 'editeng/qa/items')
-rw-r--r-- | editeng/qa/items/borderline_test.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/editeng/qa/items/borderline_test.cxx b/editeng/qa/items/borderline_test.cxx index 519d916fe57b..80a840c72389 100644 --- a/editeng/qa/items/borderline_test.cxx +++ b/editeng/qa/items/borderline_test.cxx @@ -48,6 +48,25 @@ using namespace editeng; +CPPUNIT_NS_BEGIN + +template<> struct assertion_traits<SvxBorderStyle> +{ + static bool equal( const SvxBorderStyle& x, const SvxBorderStyle& y ) + { + return x == y; + } + + static std::string toString( const SvxBorderStyle& x ) + { + OStringStream ost; + ost << static_cast<unsigned int>(x); + return ost.str(); + } +}; + +CPPUNIT_NS_END + namespace { class BorderLineTest : public CppUnit::TestFixture |