diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-09 09:31:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-09 09:32:40 +0100 |
commit | 07c1881b18bf8b6abdf976e3bdb564945d313a6c (patch) | |
tree | e53e48a313d2131b30e30f042ce4d6d34d6cd997 /tools/inc | |
parent | 0c88ebd66b0283ca770658cf1d5ee2b7b367c64a (diff) |
ConvertFromUnicode can be made private
and default argument can be removed as its always the same
Diffstat (limited to 'tools/inc')
-rw-r--r-- | tools/inc/tools/string.hxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx index a8726b5b53da..4ace1289ffdd 100644 --- a/tools/inc/tools/string.hxx +++ b/tools/inc/tools/string.hxx @@ -176,6 +176,8 @@ private: void operator +=(int); // not implemented; to detect misuses // of operator +=(sal_Char) + static sal_Size ConvertFromUnicode( sal_Unicode c, sal_Char* pBuf, sal_Size nBufLen, + rtl_TextEncoding eTextEncoding ); public: ByteString(); ByteString( const ByteString& rStr ); @@ -255,12 +257,8 @@ public: ByteString& Convert( rtl_TextEncoding eSource, rtl_TextEncoding eTarget, sal_Bool bReplace = sal_True ); - static sal_Char ConvertFromUnicode( sal_Unicode c, - rtl_TextEncoding eTextEncoding, - sal_Bool bReplace = sal_True ); - static sal_Size ConvertFromUnicode( sal_Unicode c, sal_Char* pBuf, sal_Size nBufLen, - rtl_TextEncoding eTextEncoding, - sal_Bool bReplace = sal_True ); + static sal_Char ConvertFromUnicode(sal_Unicode c, + rtl_TextEncoding eTextEncoding); ByteString& ConvertLineEnd( LineEnd eLineEnd ); ByteString& ConvertLineEnd() { return ConvertLineEnd( GetSystemLineEnd() ); } |