diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-03-28 21:56:43 +0100 |
---|---|---|
committer | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-03-28 22:58:01 +0100 |
commit | 5e649bc002ca49a5a3db43cf48149709d446bb0e (patch) | |
tree | 6bdef54110f81d5a45f30030f8efca4f38aafbce /ucb/source/ucp/webdav/SerfUri.cxx | |
parent | 46dfe0bce41de411ed14b21c24c849cc7e5f4b81 (diff) |
Remove RTL_CONSTASCII_(U)STRINGPARAM in ucb
and use append() instead of appendAscii()
Change-Id: I7c9dd0e03e24a39240a82fc245b4722d4c424842
Diffstat (limited to 'ucb/source/ucp/webdav/SerfUri.cxx')
-rw-r--r-- | ucb/source/ucp/webdav/SerfUri.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ucb/source/ucp/webdav/SerfUri.cxx b/ucb/source/ucp/webdav/SerfUri.cxx index 704d8eb3627b..550524f965ae 100644 --- a/ucb/source/ucp/webdav/SerfUri.cxx +++ b/ucb/source/ucp/webdav/SerfUri.cxx @@ -140,19 +140,19 @@ SerfUri::~SerfUri( ) void SerfUri::calculateURI () { rtl::OUStringBuffer aBuf( mScheme ); - aBuf.appendAscii( "://" ); + aBuf.append( "://" ); if ( mUserInfo.getLength() > 0 ) { aBuf.append( mUserInfo ); - aBuf.appendAscii( "@" ); + aBuf.append( "@" ); } // Is host a numeric IPv6 address? if ( ( mHostName.indexOf( ':' ) != -1 ) && ( mHostName[ 0 ] != sal_Unicode( '[' ) ) ) { - aBuf.appendAscii( "[" ); + aBuf.append( "[" ); aBuf.append( mHostName ); - aBuf.appendAscii( "]" ); + aBuf.append( "]" ); } else { @@ -164,16 +164,16 @@ void SerfUri::calculateURI () switch ( mPort ) { case DEFAULT_HTTP_PORT: - bAppendPort = !mScheme.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "http" ) ); + bAppendPort = (mScheme != "http"); break; case DEFAULT_HTTPS_PORT: - bAppendPort = !mScheme.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "https" ) ); + bAppendPort = (mScheme != "https"); break; } if ( bAppendPort ) { - aBuf.appendAscii( ":" ); + aBuf.append( ":" ); aBuf.append( rtl::OUString::valueOf( mPort ) ); } aBuf.append( mPath ); @@ -256,9 +256,9 @@ rtl::OUString SerfUri::makeConnectionEndPointString( if ( ( rHostName.indexOf( ':' ) != -1 ) && ( rHostName[ 0 ] != sal_Unicode( '[' ) ) ) { - aBuf.appendAscii( "[" ); + aBuf.append( "[" ); aBuf.append( rHostName ); - aBuf.appendAscii( "]" ); + aBuf.append( "]" ); } else { @@ -267,7 +267,7 @@ rtl::OUString SerfUri::makeConnectionEndPointString( if ( ( nPort != DEFAULT_HTTP_PORT ) && ( nPort != DEFAULT_HTTPS_PORT ) ) { - aBuf.appendAscii( ":" ); + aBuf.append( ":" ); aBuf.append( rtl::OUString::valueOf( sal_Int32( nPort ) ) ); } return aBuf.makeStringAndClear(); |