diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-02-16 19:07:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-02-16 21:16:12 +0000 |
commit | df5995b0bf9db2a68dc64f0dda1cc74ab222a1f2 (patch) | |
tree | 23d62b841c330ffe73c71b14b210005607c4f1d3 /editeng | |
parent | 5884a122dc2a2c73865efdbdd861c281475a681e (diff) |
Only specialize CppUnit::assetion_traits<T>::toString member functions
...not the whole CppUnit::assetion_traits<T> classes (where applicable). That
avoids spelling out the (identical) equals member functions, and also leaves
around the less and lessEqual member functions, in case they want to be used
after all.
Change-Id: I18f8d6cff0353921ced4952b33a0c85ff8292923
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147165
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/qa/items/borderline_test.cxx | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/editeng/qa/items/borderline_test.cxx b/editeng/qa/items/borderline_test.cxx index 0499c7087984..a72ac14f4c78 100644 --- a/editeng/qa/items/borderline_test.cxx +++ b/editeng/qa/items/borderline_test.cxx @@ -28,24 +28,13 @@ using namespace ::com::sun::star::table::BorderLineStyle; using namespace editeng; -CPPUNIT_NS_BEGIN - -template<> struct assertion_traits<SvxBorderLineStyle> +template<> inline std::string CPPUNIT_NS::assertion_traits<SvxBorderLineStyle>::toString( + SvxBorderLineStyle const & x ) { - static bool equal( SvxBorderLineStyle x, SvxBorderLineStyle y ) - { - return x == y; - } - - static std::string toString( SvxBorderLineStyle x ) - { - OStringStream ost; - ost << static_cast<unsigned int>(x); - return ost.str(); - } -}; - -CPPUNIT_NS_END + OStringStream ost; + ost << static_cast<unsigned int>(x); + return ost.str(); +} namespace { |