diff options
author | Eike Rathke <erack@redhat.com> | 2013-02-26 11:10:49 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-02-26 12:01:00 +0100 |
commit | 44a400b40d2a0ee1e6babb2eda1e07baaee2ea16 (patch) | |
tree | 9923e8e7cef0832411c68d050a20072dfc205062 /sal/inc | |
parent | fb0654442d01a928d099627d26999435e3c4c2f4 (diff) |
SAL_WARN_UNUSED_RESULT OString copy
Change-Id: Iba2ee6f72c5d3fe35a22a6b2a6b42866fd8fb6fd
Diffstat (limited to 'sal/inc')
-rw-r--r-- | sal/inc/rtl/string.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); |