diff --git a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx index 27f70800d0d2..1a40117e5be5 100644 --- a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx +++ b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx @@ -59,6 +59,9 @@ CPPUNIT_TEST_SUITE_END(); template bool VALID_CONVERSION( T && expression ) { rtl_string_unittest_invalid_conversion = false; + // OK to std::forward expression twice; what is relevant in both ctor calls + // is not the content of the passed argument (which is ignored anyway by the + // special RTL_STRING_UNITTEST ctors) but only its type: ( void ) rtl::OUString( std::forward(expression) ); ( void ) rtl::OUStringBuffer( std::forward(expression) ); return !rtl_string_unittest_invalid_conversion;