summaryrefslogtreecommitdiff
path: root/o3tl
diff options
context:
space:
mode:
Diffstat (limited to 'o3tl')
-rw-r--r--o3tl/qa/test-string_view.cxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/o3tl/qa/test-string_view.cxx b/o3tl/qa/test-string_view.cxx
index 0cc753795df2..37cb4118a8e2 100644
--- a/o3tl/qa/test-string_view.cxx
+++ b/o3tl/qa/test-string_view.cxx
@@ -23,17 +23,11 @@
// gcc 11.2.0 triggers a spurious -Werror=stringop-overread
#if !(defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 2)
-namespace CppUnit
+template <>
+inline std::string
+CppUnit::assertion_traits<std::u16string_view>::toString(std::u16string_view const& x)
{
-template <> struct assertion_traits<std::u16string_view>
-{
- static bool equal(std::u16string_view x, std::u16string_view y) { return x == y; }
-
- static std::string toString(std::u16string_view x)
- {
- return OUStringToOString(x, RTL_TEXTENCODING_UTF8).getStr();
- }
-};
+ return OUStringToOString(x, RTL_TEXTENCODING_UTF8).getStr();
}
namespace