diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-03-08 00:49:32 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-03-12 13:35:57 +0100 |
commit | 3f765e5bb2955683fc2db10f630365a4c35416d3 (patch) | |
tree | 005cbfefc4547529d7a1e416b657d44c6e1e8308 /vcl | |
parent | 56e4153e2cbee8d66659e0c59690ef8911ad090a (diff) |
replace usage of OUString::replace*AsciiL() with string literal overloads
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/print/genprnpsp.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/gtk/app/gtksys.cxx | 5 |
2 files changed, 3 insertions, 8 deletions
diff --git a/vcl/generic/print/genprnpsp.cxx b/vcl/generic/print/genprnpsp.cxx index a456517a9df5..54cb87c1823b 100644 --- a/vcl/generic/print/genprnpsp.cxx +++ b/vcl/generic/print/genprnpsp.cxx @@ -359,8 +359,7 @@ static bool sendAFax( const OUString& rFaxNumber, const OUString& rFileName, con OUString aFaxNumber( aFaxNumbers.front() ); aFaxNumbers.pop_front(); OUString aCmdLine( - rCommand.replaceAllAsciiL( - RTL_CONSTASCII_STRINGPARAM("(PHONE)"), aFaxNumber)); + rCommand.replaceAll("(PHONE)", aFaxNumber)); #if OSL_DEBUG_LEVEL > 1 fprintf( stderr, "sending fax to \"%s\"\n", OUStringToOString( aFaxNumber, osl_getThreadTextEncoding() ).getStr() ); #endif @@ -384,8 +383,7 @@ static bool createPdf( const OUString& rToFile, const OUString& rFromFile, const { #if defined( UNX ) OUString aCommandLine( - rCommandLine.replaceAllAsciiL( - RTL_CONSTASCII_STRINGPARAM("(OUTFILE)"), rToFile)); + rCommandLine.replaceAll("(OUTFILE)", rToFile)); return passFileToCommandLine( rFromFile, aCommandLine ); #else diff --git a/vcl/unx/gtk/app/gtksys.cxx b/vcl/unx/gtk/app/gtksys.cxx index 7c3b3f0e0cc1..bf3fba737de8 100644 --- a/vcl/unx/gtk/app/gtksys.cxx +++ b/vcl/unx/gtk/app/gtksys.cxx @@ -240,10 +240,7 @@ rtl::OUString GtkSalSystem::GetDisplayScreenName(unsigned int nScreen) // convert ~ to indicate mnemonic to '_' static rtl::OString MapToGtkAccelerator(const rtl::OUString &rStr) { - const rtl::OUString aRep(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "_" ))); - return rtl::OUStringToOString( - rStr.replaceFirstAsciiL(RTL_CONSTASCII_STRINGPARAM( "~" ), aRep), - RTL_TEXTENCODING_UTF8); + return rtl::OUStringToOString(rStr.replaceFirst("~", "_"), RTL_TEXTENCODING_UTF8); } int GtkSalSystem::ShowNativeDialog (const rtl::OUString& rTitle, const rtl::OUString& rMessage, |