From 6e03e292e5e887053dfd7746d6f9df12abc0bab7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 21 Oct 2013 11:41:47 +0100 Subject: Related: fdo#38838 remove a pile of ctors Change-Id: I5d19eadc3dc24b0aeeb61c677f440eef83af78c2 --- tools/source/string/strucvt.cxx | 25 ------------------------- tools/source/string/tustring.cxx | 2 -- 2 files changed, 27 deletions(-) (limited to 'tools') diff --git a/tools/source/string/strucvt.cxx b/tools/source/string/strucvt.cxx index f85d7d6c6f65..9ed5a2063fb4 100644 --- a/tools/source/string/strucvt.cxx +++ b/tools/source/string/strucvt.cxx @@ -17,31 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -UniString::UniString( const char* pByteStr, - rtl_TextEncoding eTextEncoding, sal_uInt32 nCvtFlags ) -{ - DBG_ASSERT( pByteStr, "UniString::UniString() - pByteStr is NULL" ); - - mpData = NULL; - rtl_string2UString( (rtl_uString **)(&mpData), - pByteStr, ImplStringLen( pByteStr ), - eTextEncoding, nCvtFlags ); -} - -UniString::UniString( const char* pByteStr, xub_StrLen nLen, - rtl_TextEncoding eTextEncoding, sal_uInt32 nCvtFlags ) -{ - DBG_ASSERT( pByteStr, "UniString::UniString() - pByteStr is NULL" ); - - if ( nLen == STRING_LEN ) - nLen = ImplStringLen( pByteStr ); - - mpData = NULL; - rtl_string2UString( (rtl_uString **)(&mpData), - pByteStr, nLen, - eTextEncoding, nCvtFlags ); -} - UniString::UniString( const OUString& rStr ) : mpData(NULL) { diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx index f4f3bd27086d..cc4f27d3915b 100644 --- a/tools/source/string/tustring.cxx +++ b/tools/source/string/tustring.cxx @@ -45,8 +45,6 @@ DBG_NAME( UniString ) #include #include -UniString::UniString(char c): mpData(ImplAllocData(1)) { mpData->maStr[0] = c; } - StringCompare STRING::CompareTo( const STRING& rStr, xub_StrLen nLen ) const { if ( mpData == rStr.mpData ) -- cgit