Kaydet (Commit) ba8e95d0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Comment cppcheck accessForwarded as harmless

Change-Id: I2692ba63f010b61e7b4c1fe54368f4dac9c42d60
üst 557da0b7
......@@ -59,6 +59,9 @@ CPPUNIT_TEST_SUITE_END();
template<typename T> 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<T>(expression) );
( void ) rtl::OUStringBuffer( std::forward<T>(expression) );
return !rtl_string_unittest_invalid_conversion;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment