summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-12-06 11:33:36 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-12-06 11:35:33 +0100
commitba8e95d0e86682349f377480e65fbf4641ef27f2 (patch)
tree877236a6a4ec4a9387d4a9511abfaa5450d0604d /sal
parent557da0b7d8e30da4b0e3a0c630383afd79b5bf85 (diff)
Comment cppcheck accessForwarded as harmless
Change-Id: I2692ba63f010b61e7b4c1fe54368f4dac9c42d60
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/rtl/strings/test_oustring_stringliterals.cxx3
1 files changed, 3 insertions, 0 deletions
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<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;