summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sal/inc/rtl/ustring.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/inc/rtl/ustring.hxx b/sal/inc/rtl/ustring.hxx
index 1794bf4c2f42..848810c80676 100644
--- a/sal/inc/rtl/ustring.hxx
+++ b/sal/inc/rtl/ustring.hxx
@@ -1440,7 +1440,7 @@ public:
@param beginIndex the beginning index, inclusive.
@return the specified substring.
*/
- OUString copy( sal_Int32 beginIndex ) const SAL_THROW(())
+ SAL_WARN_UNUSED_RESULT OUString copy( sal_Int32 beginIndex ) const SAL_THROW(())
{
rtl_uString *pNew = 0;
rtl_uString_newFromSubString( &pNew, pData, beginIndex, getLength() - beginIndex );
@@ -1459,7 +1459,7 @@ public:
@param count the number of characters.
@return the specified substring.
*/
- OUString copy( sal_Int32 beginIndex, sal_Int32 count ) const SAL_THROW(())
+ SAL_WARN_UNUSED_RESULT OUString copy( sal_Int32 beginIndex, sal_Int32 count ) const SAL_THROW(())
{
rtl_uString *pNew = 0;
rtl_uString_newFromSubString( &pNew, pData, beginIndex, count );