diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-20 12:07:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-20 19:00:36 +0100 |
commit | 8bb4b18127cdc6259ecd65ec0f28d27d0513cb26 (patch) | |
tree | 3992f44ffe474da9b38094b93267692c2afb0b01 /include/tools | |
parent | b0fd64b2fa7ae1fd8d435c64b7b69758e98e8926 (diff) |
Related: fdo#38838 remove String::Equals
Change-Id: Ib85907c9e274ba4e4f4c9394f3d4ecf0c9374603
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/string.hxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/tools/string.hxx b/include/tools/string.hxx index 13c3ce0a1184..482d098a8dda 100644 --- a/include/tools/string.hxx +++ b/include/tools/string.hxx @@ -140,8 +140,6 @@ private: TOOLS_DLLPRIVATE UniString& Append( const sal_Unicode* pCharStr ); TOOLS_DLLPRIVATE UniString& Append( const sal_Unicode* pCharStr, xub_StrLen nLen ); TOOLS_DLLPRIVATE UniString& Expand( xub_StrLen nCount, sal_Unicode cExpandChar ); - TOOLS_DLLPRIVATE sal_Bool Equals( const sal_Unicode* pCharStr, - xub_StrLen nIndex, xub_StrLen nLen ) const; TOOLS_DLLPRIVATE UniString& Insert( const UniString& rStr, xub_StrLen nPos, xub_StrLen nLen, xub_StrLen nIndex = STRING_LEN ); @@ -220,14 +218,9 @@ public: UniString& Insert( sal_Unicode c, xub_StrLen nIndex = STRING_LEN ); UniString Copy( xub_StrLen nIndex = 0, xub_StrLen nCount = STRING_LEN ) const; - sal_Bool Equals( const UniString& rStr ) const; - sal_Bool Equals( const UniString& rStr, - xub_StrLen nIndex, xub_StrLen nLen ) const; - const sal_Unicode* GetBuffer() const { return mpData->maStr; } - friend sal_Bool operator == ( const UniString& rStr1, const UniString& rStr2 ) - { return rStr1.Equals( rStr2 ); } + friend sal_Bool operator == ( const UniString& rStr1, const UniString& rStr2 ); friend sal_Bool operator != ( const UniString& rStr1, const UniString& rStr2 ) { return !(operator == ( rStr1, rStr2 )); } friend sal_Bool operator < ( const UniString& rStr1, const UniString& rStr2 ) |