summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-20 11:10:15 +0200
committerNoel Grandin <noel@peralex.com>2013-11-20 13:56:07 +0200
commit5112f6a6c6e4cd76045f31e269a679b50dc83fb2 (patch)
treeed7af465f490d743b06831216243fddbd2e13940 /extensions
parent0b4b02d9b6cf5b939dc1522d8348e3f4d6f955d4 (diff)
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
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/update/check/download.cxx10
1 files changed, 5 insertions, 5 deletions
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 )