diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-18 23:57:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-19 09:59:24 +0100 |
commit | 2b7fdc51dc418ac4d9719ece12d383a6661df1cd (patch) | |
tree | adc9cc780bb6debf7a96e551d3f8adc63dea7397 /tools | |
parent | ByteString->rtl::OString[Buffer] (diff) | |
download | core-2b7fdc51dc418ac4d9719ece12d383a6661df1cd.tar.gz core-2b7fdc51dc418ac4d9719ece12d383a6661df1cd.zip |
shrink ByteString api
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/string.hxx | 2 | ||||
-rw-r--r-- | tools/source/string/strimp.cxx | 12 | ||||
-rw-r--r-- | tools/source/string/tustring.cxx | 12 |
3 files changed, 13 insertions, 13 deletions
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx index 54f4f8898b72..d976207835e8 100644 --- a/tools/inc/tools/string.hxx +++ b/tools/inc/tools/string.hxx @@ -163,6 +163,7 @@ private: ByteString( const int* pDummy ); // not implemented: to prevent ByteString( NULL ) ByteString(int); // not implemented; to detect misuses // of ByteString(sal_Char); + ByteString( sal_Char c ); //not implemented ByteString( const UniString& rUniStr, xub_StrLen nPos, xub_StrLen nLen, rtl_TextEncoding eTextEncoding, sal_uInt32 nCvtFlags = UNISTRING_TO_BYTESTRING_CVTFLAGS ); //not implemented, to detect use of removed methods without compiler making something to fit @@ -185,7 +186,6 @@ public: ByteString( const rtl::OString& rStr ); ByteString( const sal_Char* pCharStr ); ByteString( const sal_Char* pCharStr, xub_StrLen nLen ); - ByteString( sal_Char c ); ByteString( const UniString& rUniStr, rtl_TextEncoding eTextEncoding, sal_uInt32 nCvtFlags = UNISTRING_TO_BYTESTRING_CVTFLAGS ); diff --git a/tools/source/string/strimp.cxx b/tools/source/string/strimp.cxx index b83b39c312f5..da98a85e09a6 100644 --- a/tools/source/string/strimp.cxx +++ b/tools/source/string/strimp.cxx @@ -326,18 +326,6 @@ STRING::STRING( const STRCODE* pCharStr, xub_StrLen nLen ) // ----------------------------------------------------------------------- -STRING::STRING( STRCODE c ) -{ - DBG_CTOR( STRING, DBGCHECKSTRING ); - DBG_ASSERT( c, "String::String() - c is 0" ); - - // Verwaltungsdaten anlegen und initialisieren - mpData = ImplAllocData( 1 ); - mpData->maStr[0] = c; -} - -// ----------------------------------------------------------------------- - STRING::~STRING() { DBG_DTOR( STRING, DBGCHECKSTRING ); diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx index 30c973ecb9c9..30a0fd508f49 100644 --- a/tools/source/string/tustring.cxx +++ b/tools/source/string/tustring.cxx @@ -564,4 +564,16 @@ STRCODE* STRING::AllocBuffer( xub_StrLen nLen ) return mpData->maStr; } +// ----------------------------------------------------------------------- + +STRING::STRING( STRCODE c ) +{ + DBG_CTOR( STRING, DBGCHECKSTRING ); + DBG_ASSERT( c, "String::String() - c is 0" ); + + // Verwaltungsdaten anlegen und initialisieren + mpData = ImplAllocData( 1 ); + mpData->maStr[0] = c; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |