summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-02-26 11:09:54 +0100
committerEike Rathke <erack@redhat.com>2013-02-26 12:01:00 +0100
commitfb0654442d01a928d099627d26999435e3c4c2f4 (patch)
tree9c29d59e811714f17d0926bf8953906e5991a436
parent61f467c8974d6b6face41e7027d75ae4ddb6fdb2 (diff)
SAL_WARN_UNUSED_RESULT OUString copy
Change-Id: Ic511a4a399ae2d75de6050ac8e3f77ee13ec8275
-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 );