Comment cppcheck accessForwarded as harmless

Change-Id: I2692ba63f010b61e7b4c1fe54368f4dac9c42d60
This commit is contained in:
Stephan Bergmann
2016-12-06 11:33:36 +01:00
parent 557da0b7d8
commit ba8e95d0e8

View File

@@ -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;