diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-26 13:45:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-26 13:55:30 +0200 |
commit | 1de776a4927aa2c1e525ce28764f076061f2c8cd (patch) | |
tree | 891fff9571fa32200b8763e095cc78232b5e62b4 /include/rtl | |
parent | Unnecessary nested #ifdef LIBO_INTERNAL_ONLY (diff) | |
download | core-1de776a4927aa2c1e525ce28764f076061f2c8cd.tar.gz core-1de776a4927aa2c1e525ce28764f076061f2c8cd.zip |
SAL_WARN_UNUSED_RESULT missing from some of the operator+ overloads
Change-Id: I70acf02c36ced3ff19f424768f293f2221ef7af5
Diffstat (limited to 'include/rtl')
-rw-r--r-- | include/rtl/stringconcat.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rtl/stringconcat.hxx b/include/rtl/stringconcat.hxx index 2df44cabfe2b..f381786eae4b 100644 --- a/include/rtl/stringconcat.hxx +++ b/include/rtl/stringconcat.hxx @@ -252,6 +252,7 @@ typename libreoffice_internal::Enable< OStringConcat< char[ N ], T >, ToStringHe template< typename T1, typename T2 > inline +SAL_WARN_UNUSED_RESULT typename libreoffice_internal::Enable< OUStringConcat< T1, T2 >, ToStringHelper< T1 >::allowOUStringConcat && ToStringHelper< T2 >::allowOUStringConcat >::Type operator+( const T1& left, const T2& right ) { return OUStringConcat< T1, T2 >( left, right ); @@ -259,6 +260,7 @@ typename libreoffice_internal::Enable< OUStringConcat< T1, T2 >, ToStringHelper< template< typename T1, typename T2 > inline +SAL_WARN_UNUSED_RESULT typename libreoffice_internal::Enable< OUStringConcat< T1, T2 >, ToStringHelper< T1 >::allowOUStringConcat && ToStringHelper< T2 >::allowOUStringConcat && libreoffice_internal::ConstCharArrayDetector< T1, void >::ok >::Type operator+( T1& left, const T2& right ) { return OUStringConcat< T1, T2 >( left, right ); @@ -266,6 +268,7 @@ typename libreoffice_internal::Enable< OUStringConcat< T1, T2 >, ToStringHelper< template< typename T1, typename T2 > inline +SAL_WARN_UNUSED_RESULT typename libreoffice_internal::Enable< OUStringConcat< T1, T2 >, ToStringHelper< T1 >::allowOUStringConcat && ToStringHelper< T2 >::allowOUStringConcat && libreoffice_internal::ConstCharArrayDetector< T2, void >::ok >::Type operator+( const T1& left, T2& right ) { return OUStringConcat< T1, T2 >( left, right ); |