diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-05-23 08:46:40 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-05-23 08:49:24 +0200 |
commit | d080e70af3f3f346be03f7a32052b1fcc8449e99 (patch) | |
tree | acb32f923a3b355c912290182ef0a74b26d64b31 /include/rtl/string.hxx | |
parent | 6e2ff4edb2aae441142280ef31286f4627347fb8 (diff) |
Remove redundant (private) DO_NOT_ACQUIRE
...the constructors with SAL_NO_ACQUIRE argument do the same.
Change-Id: I5c893080c9ae14e9e7ecefb726f3d99fce67ec81
Diffstat (limited to 'include/rtl/string.hxx')
-rw-r--r-- | include/rtl/string.hxx | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx index c83445010efa..6cb69c6479b0 100644 --- a/include/rtl/string.hxx +++ b/include/rtl/string.hxx @@ -94,15 +94,6 @@ public: rtl_String * pData; /// @endcond -private: - class DO_NOT_ACQUIRE; - - OString( rtl_String * value, SAL_UNUSED_PARAMETER DO_NOT_ACQUIRE * ) - { - pData = value; - } - -public: /** New string containing no characters. */ @@ -1070,7 +1061,7 @@ public: { rtl_String *pNew = 0; rtl_string_newFromSubString( &pNew, pData, beginIndex, getLength() - beginIndex ); - return OString( pNew, (DO_NOT_ACQUIRE*)0 ); + return OString( pNew, SAL_NO_ACQUIRE ); } /** @@ -1089,7 +1080,7 @@ public: { rtl_String *pNew = 0; rtl_string_newFromSubString( &pNew, pData, beginIndex, count ); - return OString( pNew, (DO_NOT_ACQUIRE*)0 ); + return OString( pNew, SAL_NO_ACQUIRE ); } /** @@ -1104,7 +1095,7 @@ public: { rtl_String* pNew = 0; rtl_string_newConcat( &pNew, pData, str.pData ); - return OString( pNew, (DO_NOT_ACQUIRE*)0 ); + return OString( pNew, SAL_NO_ACQUIRE ); } #ifndef RTL_FAST_STRING @@ -1131,7 +1122,7 @@ public: { rtl_String* pNew = 0; rtl_string_newReplaceStrAt( &pNew, pData, index, count, newStr.pData ); - return OString( pNew, (DO_NOT_ACQUIRE*)0 ); + return OString( pNew, SAL_NO_ACQUIRE ); } /** @@ -1151,7 +1142,7 @@ public: { rtl_String* pNew = 0; rtl_string_newReplace( &pNew, pData, oldChar, newChar ); - return OString( pNew, (DO_NOT_ACQUIRE*)0 ); + return OString( pNew, SAL_NO_ACQUIRE ); } /** @@ -1218,7 +1209,7 @@ public: { rtl_String* pNew = 0; rtl_string_newToAsciiLowerCase( &pNew, pData ); - return OString( pNew, (DO_NOT_ACQUIRE*)0 ); + return OString( pNew, SAL_NO_ACQUIRE ); } /** @@ -1235,7 +1226,7 @@ public: { rtl_String* pNew = 0; rtl_string_newToAsciiUpperCase( &pNew, pData ); - return OString( pNew, (DO_NOT_ACQUIRE*)0 ); + return OString( pNew, SAL_NO_ACQUIRE ); } /** @@ -1253,7 +1244,7 @@ public: { rtl_String* pNew = 0; rtl_string_newTrim( &pNew, pData ); - return OString( pNew, (DO_NOT_ACQUIRE*)0 ); + return OString( pNew, SAL_NO_ACQUIRE ); } /** @@ -1284,7 +1275,7 @@ public: { rtl_String * pNew = 0; index = rtl_string_getToken( &pNew, pData, token, cTok, index ); - return OString( pNew, (DO_NOT_ACQUIRE *)0 ); + return OString( pNew, SAL_NO_ACQUIRE ); } /** @@ -1441,7 +1432,7 @@ public: sal_Char aBuf[RTL_STR_MAX_VALUEOFINT64]; rtl_String* pNewData = 0; rtl_string_newFromStr_WithLength( &pNewData, aBuf, rtl_str_valueOfInt64( aBuf, ll, radix ) ); - return OString( pNewData, (DO_NOT_ACQUIRE*)0 ); + return OString( pNewData, SAL_NO_ACQUIRE ); } /// @overload /// @since LibreOffice 4.1 @@ -1450,7 +1441,7 @@ public: sal_Char aBuf[RTL_STR_MAX_VALUEOFUINT64]; rtl_String* pNewData = 0; rtl_string_newFromStr_WithLength( &pNewData, aBuf, rtl_str_valueOfUInt64( aBuf, ll, radix ) ); - return OString( pNewData, (DO_NOT_ACQUIRE*)0 ); + return OString( pNewData, SAL_NO_ACQUIRE ); } /** @@ -1467,7 +1458,7 @@ public: sal_Char aBuf[RTL_STR_MAX_VALUEOFFLOAT]; rtl_String* pNewData = 0; rtl_string_newFromStr_WithLength( &pNewData, aBuf, rtl_str_valueOfFloat( aBuf, f ) ); - return OString( pNewData, (DO_NOT_ACQUIRE*)0 ); + return OString( pNewData, SAL_NO_ACQUIRE ); } /** @@ -1484,7 +1475,7 @@ public: sal_Char aBuf[RTL_STR_MAX_VALUEOFDOUBLE]; rtl_String* pNewData = 0; rtl_string_newFromStr_WithLength( &pNewData, aBuf, rtl_str_valueOfDouble( aBuf, d ) ); - return OString( pNewData, (DO_NOT_ACQUIRE*)0 ); + return OString( pNewData, SAL_NO_ACQUIRE ); } /** @@ -1519,7 +1510,7 @@ public: sal_Char aBuf[RTL_STR_MAX_VALUEOFBOOLEAN]; rtl_String* pNewData = 0; rtl_string_newFromStr_WithLength( &pNewData, aBuf, rtl_str_valueOfBoolean( aBuf, b ) ); - return OString( pNewData, (DO_NOT_ACQUIRE*)0 ); + return OString( pNewData, SAL_NO_ACQUIRE ); } /** |