[Libreoffice-commits] core.git: 2 commits - sal/inc

Eike Rathke erack at redhat.com
Tue Feb 26 03:01:21 PST 2013


 sal/inc/rtl/string.hxx  |    4 ++--
 sal/inc/rtl/ustring.hxx |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 44a400b40d2a0ee1e6babb2eda1e07baaee2ea16
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Feb 26 11:10:49 2013 +0100

    SAL_WARN_UNUSED_RESULT OString copy
    
    Change-Id: Iba2ee6f72c5d3fe35a22a6b2a6b42866fd8fb6fd

diff --git a/sal/inc/rtl/string.hxx b/sal/inc/rtl/string.hxx
index 90544ac..9233823 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 );
commit fb0654442d01a928d099627d26999435e3c4c2f4
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Feb 26 11:09:54 2013 +0100

    SAL_WARN_UNUSED_RESULT OUString copy
    
    Change-Id: Ic511a4a399ae2d75de6050ac8e3f77ee13ec8275

diff --git a/sal/inc/rtl/ustring.hxx b/sal/inc/rtl/ustring.hxx
index 1794bf4..848810c 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 );


More information about the Libreoffice-commits mailing list