From 5112f6a6c6e4cd76045f31e269a679b50dc83fb2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 Nov 2013 11:10:15 +0200 Subject: remove RTL_CONSTASCII_STRINGPARAM in OString constructor Convert code like: OString aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX")); to: OString aKeyName("NDX"); which compiles down to the same code Change-Id: I1780264cae4484fc78f0586b0750c09f2dce135f --- extensions/source/update/check/download.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'extensions') diff --git a/extensions/source/update/check/download.cxx b/extensions/source/update/check/download.cxx index 4809cf41b818..94beb83856d9 100644 --- a/extensions/source/update/check/download.cxx +++ b/extensions/source/update/check/download.cxx @@ -299,7 +299,7 @@ bool curl_run(const OUString& rURL, OutData& out, const OString& aProxyHost, sal // Only report errors when not stopped else { - OString aMessage(RTL_CONSTASCII_STRINGPARAM("Unknown error")); + OString aMessage("Unknown error"); const char * error_message = curl_easy_strerror(cc); if( NULL != error_message ) @@ -311,9 +311,9 @@ bool curl_run(const OUString& rURL, OutData& out, const OString& aProxyHost, sal curl_easy_getinfo( pCURL, CURLINFO_RESPONSE_CODE, &nError ); if ( 403 == nError ) - aMessage += OString( RTL_CONSTASCII_STRINGPARAM( " 403: Access denied!" ) ); + aMessage += OString( " 403: Access denied!" ); else if ( 404 == nError ) - aMessage += OString( RTL_CONSTASCII_STRINGPARAM( " 404: File not found!" ) ); + aMessage += OString( " 404: File not found!" ); else if ( 416 == nError ) { // we got this error probably, because we already downloaded the file @@ -322,9 +322,9 @@ bool curl_run(const OUString& rURL, OutData& out, const OString& aProxyHost, sal } else { - aMessage += OString( RTL_CONSTASCII_STRINGPARAM( ":error code = " ) ); + aMessage += OString( ":error code = " ); aMessage += OString::number( nError ); - aMessage += OString( RTL_CONSTASCII_STRINGPARAM( " !" ) ); + aMessage += OString( " !" ); } } if ( !ret ) -- cgit v1.2.3