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 --- include/tools/string.hxx | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) (limited to 'include/tools') diff --git a/include/tools/string.hxx b/include/tools/string.hxx index 6904e0ef5680..95602203531f 100644 --- a/include/tools/string.hxx +++ b/include/tools/string.hxx @@ -99,44 +99,13 @@ private: UniString& Assign( const OUString& rStr ); UniString& Append( const UniString& rStr ); - - UniString( const int* pDummy ); // not implemented: to prevent UniString( NULL ) - UniString(int); // not implemented; to detect misuses of - // UniString(sal_Unicode) - void operator =(int); // not implemented; to detect misuses - // of operator =(sal_Unicode) - void Append(int); // not implemented; to detect misuses of - // Append(sal_Unicode) - - //detect and reject use of RTL_CONSTASCII_STRINGPARAM instead of RTL_CONSTASCII_USTRINGPARAM - TOOLS_DLLPRIVATE UniString( const sal_Char*, sal_Int32 ); - - //detect and reject wrong way to attempt to create a UniString from a substring of - //a OString - TOOLS_DLLPRIVATE UniString(const OString& rByteStr, xub_StrLen nPos, xub_StrLen nLen, - sal_uInt32 nCvtFlags = BYTESTRING_TO_UNISTRING_CVTFLAGS); - - //no longer implemented - TOOLS_DLLPRIVATE UniString( const OString& rByteStr, - rtl_TextEncoding eTextEncoding, - sal_uInt32 nCvtFlags = BYTESTRING_TO_UNISTRING_CVTFLAGS ); - TOOLS_DLLPRIVATE UniString( const sal_Unicode* pCharStr ); - TOOLS_DLLPRIVATE UniString( const sal_Unicode* pCharStr, xub_StrLen nLen ); - TOOLS_DLLPRIVATE UniString( sal_Unicode c ); public: UniString(); UniString( const ResId& rResId ); UniString( const UniString& rStr ); UniString( const UniString& rStr, xub_StrLen nPos, xub_StrLen nLen ); UniString( const OUString& rStr ); - UniString(char c); // ...but allow "UniString('a')" - UniString( const sal_Char* pByteStr, - rtl_TextEncoding eTextEncoding, - sal_uInt32 nCvtFlags = BYTESTRING_TO_UNISTRING_CVTFLAGS ); - UniString( const sal_Char* pByteStr, xub_StrLen nLen, - rtl_TextEncoding eTextEncoding, - sal_uInt32 nCvtFlags = BYTESTRING_TO_UNISTRING_CVTFLAGS ); - ~UniString(); + ~UniString(); operator OUString () const { -- cgit