summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-08 00:36:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-08 13:04:49 +0100
commit5a1123ac07d76492191be3f1a204d86cc49e3c69 (patch)
tree84e29f09355b587a3df861d78dba496ba2e73210 /tools
parentcallcatcher: ditch some more methods (diff)
downloadcore-5a1123ac07d76492191be3f1a204d86cc49e3c69.tar.gz
core-5a1123ac07d76492191be3f1a204d86cc49e3c69.zip
reduce API bReplace is always true
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/string.hxx3
-rw-r--r--tools/source/string/strcvt.cxx5
2 files changed, 3 insertions, 5 deletions
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx
index 9fc46bb97a52..fc7c755dec72 100644
--- a/tools/inc/tools/string.hxx
+++ b/tools/inc/tools/string.hxx
@@ -256,8 +256,7 @@ public:
rtl_TextEncoding eTarget,
sal_Bool bReplace = sal_True );
static sal_Char Convert( sal_Char c, rtl_TextEncoding eSource,
- rtl_TextEncoding eTarget,
- sal_Bool bReplace = sal_True );
+ rtl_TextEncoding eTarget );
static sal_Char ConvertFromUnicode( sal_Unicode c,
rtl_TextEncoding eTextEncoding,
sal_Bool bReplace = sal_True );
diff --git a/tools/source/string/strcvt.cxx b/tools/source/string/strcvt.cxx
index 71aef08f4711..b64b51451a44 100644
--- a/tools/source/string/strcvt.cxx
+++ b/tools/source/string/strcvt.cxx
@@ -387,8 +387,7 @@ ByteString& ByteString::Convert( rtl_TextEncoding eSource, rtl_TextEncoding eTar
// =======================================================================
char ByteString::Convert( char c,
- rtl_TextEncoding eSource, rtl_TextEncoding eTarget,
- sal_Bool bReplace )
+ rtl_TextEncoding eSource, rtl_TextEncoding eTarget )
{
// TextEncoding Dontknow kann nicht konvertiert werden
if ( (eSource == RTL_TEXTENCODING_DONTKNOW) || (eTarget == RTL_TEXTENCODING_DONTKNOW) )
@@ -409,7 +408,7 @@ char ByteString::Convert( char c,
(eSource != RTL_TEXTENCODING_UTF8) )
return '\0';
- sal_uChar* pConvertTab = ImplGet1ByteConvertTab( eSource, eTarget, bReplace );
+ sal_uChar* pConvertTab = ImplGet1ByteConvertTab( eSource, eTarget, true );
if ( pConvertTab )
return (char)pConvertTab[(sal_uChar)c];
else