From 44a400b40d2a0ee1e6babb2eda1e07baaee2ea16 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 26 Feb 2013 11:10:49 +0100 Subject: SAL_WARN_UNUSED_RESULT OString copy Change-Id: Iba2ee6f72c5d3fe35a22a6b2a6b42866fd8fb6fd --- sal/inc/rtl/string.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sal/inc') diff --git a/sal/inc/rtl/string.hxx b/sal/inc/rtl/string.hxx index 90544ac879c2..9233823f469f 100644 --- a/sal/inc/rtl/string.hxx +++ b/sal/inc/rtl/string.hxx @@ -1079,7 +1079,7 @@ public: @param beginIndex the beginning index, inclusive. @return the specified substring. */ - OString copy( sal_Int32 beginIndex ) const SAL_THROW(()) + SAL_WARN_UNUSED_RESULT OString copy( sal_Int32 beginIndex ) const SAL_THROW(()) { rtl_String *pNew = 0; rtl_string_newFromSubString( &pNew, pData, beginIndex, getLength() - beginIndex ); @@ -1098,7 +1098,7 @@ public: @param count the number of characters. @return the specified substring. */ - OString copy( sal_Int32 beginIndex, sal_Int32 count ) const SAL_THROW(()) + SAL_WARN_UNUSED_RESULT OString copy( sal_Int32 beginIndex, sal_Int32 count ) const SAL_THROW(()) { rtl_String *pNew = 0; rtl_string_newFromSubString( &pNew, pData, beginIndex, count ); -- cgit