summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-18 23:57:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-19 09:59:24 +0100
commit2b7fdc51dc418ac4d9719ece12d383a6661df1cd (patch)
treeadc9cc780bb6debf7a96e551d3f8adc63dea7397 /tools
parent4ca4cd66694b553717f7540b9c247e77c0e8fe56 (diff)
shrink ByteString api
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/string.hxx2
-rw-r--r--tools/source/string/strimp.cxx12
-rw-r--r--tools/source/string/tustring.cxx12
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: */