Kaydet (Commit) fb065444 authored tarafından Eike Rathke's avatar Eike Rathke

SAL_WARN_UNUSED_RESULT OUString copy

Change-Id: Ic511a4a399ae2d75de6050ac8e3f77ee13ec8275
üst 61f467c8
...@@ -1440,7 +1440,7 @@ public: ...@@ -1440,7 +1440,7 @@ public:
@param beginIndex the beginning index, inclusive. @param beginIndex the beginning index, inclusive.
@return the specified substring. @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 *pNew = 0;
rtl_uString_newFromSubString( &pNew, pData, beginIndex, getLength() - beginIndex ); rtl_uString_newFromSubString( &pNew, pData, beginIndex, getLength() - beginIndex );
...@@ -1459,7 +1459,7 @@ public: ...@@ -1459,7 +1459,7 @@ public:
@param count the number of characters. @param count the number of characters.
@return the specified substring. @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 *pNew = 0;
rtl_uString_newFromSubString( &pNew, pData, beginIndex, count ); rtl_uString_newFromSubString( &pNew, pData, beginIndex, count );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment