diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-19 08:46:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-19 09:59:25 +0100 |
commit | d953f02bc8e9cb3a569072da68a5c53d5fdefa51 (patch) | |
tree | fb8f947026657033970516c0f1dbe34b7979b888 /tools | |
parent | a4968af0d141b60d65c0a2b0ebcdf91599f7fe3d (diff) |
remove ByteString::Assign(sal_Char)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/string.hxx | 2 | ||||
-rw-r--r-- | tools/source/string/strimp.cxx | 14 | ||||
-rw-r--r-- | tools/source/string/tustring.cxx | 14 |
3 files changed, 15 insertions, 15 deletions
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx index d976207835e8..b2f9035a6207 100644 --- a/tools/inc/tools/string.hxx +++ b/tools/inc/tools/string.hxx @@ -172,6 +172,7 @@ private: sal_uInt32 nCvtFlags = UNISTRING_TO_BYTESTRING_CVTFLAGS ); //not implemented, to detect use of removed methods without compiler making somethiing to fit void Assign(int); // not implemented; to detect misuses of // Assign(sal_Char) + ByteString& Assign( sal_Char c ); //not implemented void operator =(int); // not implemented; to detect misuses // of operator =(sal_Char) void Append(int); // not implemented; to detect misuses of @@ -200,7 +201,6 @@ public: ByteString& Assign( const rtl::OString& rStr ); ByteString& Assign( const sal_Char* pCharStr ); ByteString& Assign( const sal_Char* pCharStr, xub_StrLen nLen ); - ByteString& Assign( sal_Char c ); ByteString& operator =( const ByteString& rStr ) { return Assign( rStr ); } ByteString& operator =( const rtl::OString& rStr ) diff --git a/tools/source/string/strimp.cxx b/tools/source/string/strimp.cxx index da98a85e09a6..495b15aa4616 100644 --- a/tools/source/string/strimp.cxx +++ b/tools/source/string/strimp.cxx @@ -428,20 +428,6 @@ STRING& STRING::Assign( const STRCODE* pCharStr, xub_StrLen nLen ) // ----------------------------------------------------------------------- -STRING& STRING::Assign( STRCODE c ) -{ - DBG_CHKTHIS( STRING, DBGCHECKSTRING ); - DBG_ASSERT( c, "String::Assign() - c is 0" ); - - // Verwaltungsdaten anlegen und initialisieren - STRING_RELEASE((STRING_TYPE *)mpData); - mpData = ImplAllocData( 1 ); - mpData->maStr[0] = c; - return *this; -} - -// ----------------------------------------------------------------------- - STRING& STRING::Append( const STRING& rStr ) { DBG_CHKTHIS( STRING, DBGCHECKSTRING ); diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx index 30a0fd508f49..82d5458c1e30 100644 --- a/tools/source/string/tustring.cxx +++ b/tools/source/string/tustring.cxx @@ -576,4 +576,18 @@ STRING::STRING( STRCODE c ) mpData->maStr[0] = c; } +// ----------------------------------------------------------------------- + +STRING& STRING::Assign( STRCODE c ) +{ + DBG_CHKTHIS( STRING, DBGCHECKSTRING ); + DBG_ASSERT( c, "String::Assign() - c is 0" ); + + // Verwaltungsdaten anlegen und initialisieren + STRING_RELEASE((STRING_TYPE *)mpData); + mpData = ImplAllocData( 1 ); + mpData->maStr[0] = c; + return *this; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |