diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:00:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:00:56 +0200 |
commit | 94c76686b5b626cf8f771fc740e51c506c7a11bd (patch) | |
tree | e0ef40c7dfe04cef0ba0278ca6ef965f8d3d3bcd /ucb/source | |
parent | c168ff9c5e5a81cb610ebd1f4a2b763df51e17a2 (diff) |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I18420ed24918d77be30a1b4b3a7d55f5299fb82e
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/core/ucb.cxx | 26 | ||||
-rw-r--r-- | ucb/source/core/ucbstore.cxx | 14 | ||||
-rw-r--r-- | ucb/source/ucp/ext/ucpext_provider.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/ftp/ftpurl.cxx | 8 | ||||
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchydata.cxx | 20 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_content.cxx | 6 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_provider.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonUri.cxx | 16 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx | 6 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/webdavcontent.cxx | 4 |
10 files changed, 52 insertions, 52 deletions
diff --git a/ucb/source/core/ucb.cxx b/ucb/source/core/ucb.cxx index a06d6b8f1c5d..54c7365d2305 100644 --- a/ucb/source/core/ucb.cxx +++ b/ucb/source/core/ucb.cxx @@ -138,23 +138,23 @@ void makeAndAppendXMLName( switch ( c ) { case '&': - rBuffer.appendAscii( "&" ); + rBuffer.append( "&" ); break; case '"': - rBuffer.appendAscii( """ ); + rBuffer.append( """ ); break; case '\'': - rBuffer.appendAscii( "'" ); + rBuffer.append( "'" ); break; case '<': - rBuffer.appendAscii( "<" ); + rBuffer.append( "<" ); break; case '>': - rBuffer.appendAscii( ">" ); + rBuffer.append( ">" ); break; default: @@ -171,7 +171,7 @@ bool createContentProviderData( { // Obtain service name. OUStringBuffer aKeyBuffer (rProvider); - aKeyBuffer.appendAscii( "/ServiceName" ); + aKeyBuffer.append( "/ServiceName" ); OUString aValue; try @@ -192,7 +192,7 @@ bool createContentProviderData( // Obtain URL Template. aKeyBuffer.append(rProvider); - aKeyBuffer.appendAscii( "/URLTemplate" ); + aKeyBuffer.append( "/URLTemplate" ); if ( !( rxHierNameAccess->getByHierarchicalName( aKeyBuffer.makeStringAndClear() ) >>= aValue ) ) @@ -205,7 +205,7 @@ bool createContentProviderData( // Obtain Arguments. aKeyBuffer.append(rProvider); - aKeyBuffer.appendAscii( "/Arguments" ); + aKeyBuffer.append( "/Arguments" ); if ( !( rxHierNameAccess->getByHierarchicalName( aKeyBuffer.makeStringAndClear() ) >>= aValue ) ) @@ -884,13 +884,13 @@ bool UniversalContentBroker::getContentProviderData( configuration::theDefaultProvider::get( m_xContext ); OUStringBuffer aFullPath; - aFullPath.appendAscii( + aFullPath.append( "/org.openoffice.ucb.Configuration/ContentProviders" "/['" ); makeAndAppendXMLName( aFullPath, rKey1 ); - aFullPath.appendAscii( "']/SecondaryKeys/['" ); + aFullPath.append( "']/SecondaryKeys/['" ); makeAndAppendXMLName( aFullPath, rKey2 ); - aFullPath.appendAscii( "']/ProviderData" ); + aFullPath.append( "']/ProviderData" ); uno::Sequence< uno::Any > aArguments( 1 ); beans::PropertyValue aProperty; @@ -933,9 +933,9 @@ bool UniversalContentBroker::getContentProviderData( ContentProviderData aInfo; OUStringBuffer aElemBuffer; - aElemBuffer.appendAscii( "['" ); + aElemBuffer.append( "['" ); makeAndAppendXMLName( aElemBuffer, pElems[ n ] ); - aElemBuffer.appendAscii( "']" ); + aElemBuffer.append( "']" ); OSL_VERIFY( createContentProviderData( diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx index 545c23403e01..6eabac20fece 100644 --- a/ucb/source/core/ucbstore.cxx +++ b/ucb/source/core/ucbstore.cxx @@ -54,7 +54,7 @@ using namespace cppu; OUString makeHierarchalNameSegment( const OUString & rIn ) { OUStringBuffer aBuffer; - aBuffer.appendAscii( "['" ); + aBuffer.append( "['" ); sal_Int32 nCount = rIn.getLength(); for ( sal_Int32 n = 0; n < nCount; ++n ) @@ -63,23 +63,23 @@ OUString makeHierarchalNameSegment( const OUString & rIn ) switch ( c ) { case '&': - aBuffer.appendAscii( "&" ); + aBuffer.append( "&" ); break; case '"': - aBuffer.appendAscii( """ ); + aBuffer.append( """ ); break; case '\'': - aBuffer.appendAscii( "'" ); + aBuffer.append( "'" ); break; case '<': - aBuffer.appendAscii( "<" ); + aBuffer.append( "<" ); break; case '>': - aBuffer.appendAscii( ">" ); + aBuffer.append( ">" ); break; default: @@ -88,7 +88,7 @@ OUString makeHierarchalNameSegment( const OUString & rIn ) } } - aBuffer.appendAscii( "']" ); + aBuffer.append( "']" ); return OUString( aBuffer.makeStringAndClear() ); } diff --git a/ucb/source/ucp/ext/ucpext_provider.cxx b/ucb/source/ucp/ext/ucpext_provider.cxx index eb253161b406..ce0735e26ba3 100644 --- a/ucb/source/ucp/ext/ucpext_provider.cxx +++ b/ucb/source/ucp/ext/ucpext_provider.cxx @@ -145,7 +145,7 @@ namespace ucb { namespace ucp { namespace ext if ( sRemaining.isEmpty() ) { // the root content is a special case, it requires / - aComposer.appendAscii( "//" ); + aComposer.append( "//" ); } else { diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx index eff2b4232633..e8987dcfe13f 100644 --- a/ucb/source/ucp/ftp/ftpurl.cxx +++ b/ucb/source/ucp/ftp/ftpurl.cxx @@ -247,7 +247,7 @@ OUString FTPURL::ident(bool withslash,bool internal) const // password. ( These are set together with the command. ) OUStringBuffer bff; - bff.appendAscii("ftp://"); + bff.append("ftp://"); if( m_aUsername != "anonymous" ) { bff.append(m_aUsername); @@ -293,7 +293,7 @@ OUString FTPURL::parent(bool internal) const { OUStringBuffer bff; - bff.appendAscii("ftp://"); + bff.append("ftp://"); if( m_aUsername != "anonymous" ) { bff.append(m_aUsername); @@ -332,9 +332,9 @@ OUString FTPURL::parent(bool internal) const bff.append('/').append(m_aPathSegmentVec[i]); if(last.isEmpty()) - bff.appendAscii(".."); + bff.append(".."); else if ( last == ".." ) - bff.append(last).appendAscii("/.."); + bff.append(last).append("/.."); bff.append(m_aType); return bff.makeStringAndClear(); diff --git a/ucb/source/ucp/hierarchy/hierarchydata.cxx b/ucb/source/ucp/hierarchy/hierarchydata.cxx index 4572a34b093c..bd9805c1b557 100644 --- a/ucb/source/ucp/hierarchy/hierarchydata.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydata.cxx @@ -67,23 +67,23 @@ void makeXMLName( const OUString & rIn, OUStringBuffer & rBuffer ) switch ( c ) { case '&': - rBuffer.appendAscii( "&" ); + rBuffer.append( "&" ); break; case '"': - rBuffer.appendAscii( """ ); + rBuffer.append( """ ); break; case '\'': - rBuffer.appendAscii( "'" ); + rBuffer.append( "'" ); break; case '<': - rBuffer.appendAscii( "<" ); + rBuffer.append( "<" ); break; case '>': - rBuffer.appendAscii( ">" ); + rBuffer.append( ">" ); break; default: @@ -996,7 +996,7 @@ OUString HierarchyEntry::createPathFromHierarchyURL( if ( nLen ) { OUStringBuffer aNewPath; - aNewPath.appendAscii( "['" ); + aNewPath.append( "['" ); sal_Int32 nStart = 0; sal_Int32 nEnd = aPath.indexOf( '/' ); @@ -1011,12 +1011,12 @@ OUString HierarchyEntry::createPathFromHierarchyURL( if ( nEnd != nLen ) { - aNewPath.appendAscii( "']/Children/['" ); + aNewPath.append( "']/Children/['" ); nStart = nEnd + 1; nEnd = aPath.indexOf( '/', nStart ); } else - aNewPath.appendAscii( "']" ); + aNewPath.append( "']" ); } while ( nEnd != nLen ); @@ -1115,9 +1115,9 @@ const HierarchyEntryData& HierarchyEntry::iterator::operator*() const try { OUStringBuffer aKey; - aKey.appendAscii( "['" ); + aKey.append( "['" ); makeXMLName( m_pImpl->names.getConstArray()[ m_pImpl->pos ], aKey ); - aKey.appendAscii( "']" ); + aKey.append( "']" ); OUString aTitle = aKey.makeStringAndClear(); OUString aTargetURL = aTitle; diff --git a/ucb/source/ucp/tdoc/tdoc_content.cxx b/ucb/source/ucp/tdoc/tdoc_content.cxx index 6eb3875da89b..b50589f6e8e0 100644 --- a/ucb/source/ucp/tdoc/tdoc_content.cxx +++ b/ucb/source/ucp/tdoc/tdoc_content.cxx @@ -1672,7 +1672,7 @@ void Content::insert( const uno::Reference< io::XInputStream >& xData, do { OUStringBuffer aNew = aNewUri.getUri(); - aNew.appendAscii( "_" ); + aNew.append( "_" ); aNew.append( OUString::number( ++nTry ) ); aNewUri.setUri( aNew.makeStringAndClear() ); } @@ -1692,7 +1692,7 @@ void Content::insert( const uno::Reference< io::XInputStream >& xData, else { OUStringBuffer aNewTitle = m_aProps.getTitle(); - aNewTitle.appendAscii( "_" ); + aNewTitle.append( "_" ); aNewTitle.append( OUString::number( ++nTry ) ); m_aProps.setTitle( aNewTitle.makeStringAndClear() ); } @@ -1831,7 +1831,7 @@ Content::queryChildContent( const OUString & rRelativeChildUri ) const OUString aMyId = getIdentifier()->getContentIdentifier(); OUStringBuffer aBuf( aMyId ); if ( !aMyId.endsWith("/") ) - aBuf.appendAscii( "/" ); + aBuf.append( "/" ); if ( !rRelativeChildUri.startsWith("/") ) aBuf.append( rRelativeChildUri ); else diff --git a/ucb/source/ucp/tdoc/tdoc_provider.cxx b/ucb/source/ucp/tdoc/tdoc_provider.cxx index f0ed1286602b..f6983ab6b7c6 100644 --- a/ucb/source/ucp/tdoc/tdoc_provider.cxx +++ b/ucb/source/ucp/tdoc/tdoc_provider.cxx @@ -179,7 +179,7 @@ ContentProvider::createDocumentContent( if ( !aDocId.isEmpty() ) { OUStringBuffer aBuffer; - aBuffer.appendAscii( TDOC_URL_SCHEME ":/" ); + aBuffer.append( TDOC_URL_SCHEME ":/" ); aBuffer.append( aDocId ); uno::Reference< ucb::XContentIdentifier > xId diff --git a/ucb/source/ucp/webdav-neon/NeonUri.cxx b/ucb/source/ucp/webdav-neon/NeonUri.cxx index 596293199a20..fc0affa356e9 100644 --- a/ucb/source/ucp/webdav-neon/NeonUri.cxx +++ b/ucb/source/ucp/webdav-neon/NeonUri.cxx @@ -156,20 +156,20 @@ NeonUri::~NeonUri( ) void NeonUri::calculateURI () { OUStringBuffer aBuf( mScheme ); - aBuf.appendAscii( "://" ); + aBuf.append( "://" ); if ( !mUserInfo.isEmpty() ) { //TODO! differentiate between empty and missing userinfo aBuf.append( mUserInfo ); - aBuf.appendAscii( "@" ); + aBuf.append( "@" ); } // Is host a numeric IPv6 address? if ( ( mHostName.indexOf( ':' ) != -1 ) && ( mHostName[ 0 ] != '[' ) ) { - aBuf.appendAscii( "[" ); + aBuf.append( "[" ); aBuf.append( mHostName ); - aBuf.appendAscii( "]" ); + aBuf.append( "]" ); } else { @@ -194,7 +194,7 @@ void NeonUri::calculateURI () } if ( bAppendPort ) { - aBuf.appendAscii( ":" ); + aBuf.append( ":" ); aBuf.append( OUString::number( mPort ) ); } aBuf.append( mPath ); @@ -277,9 +277,9 @@ OUString NeonUri::makeConnectionEndPointString( if ( ( rHostName.indexOf( ':' ) != -1 ) && ( rHostName[ 0 ] != '[' ) ) { - aBuf.appendAscii( "[" ); + aBuf.append( "[" ); aBuf.append( rHostName ); - aBuf.appendAscii( "]" ); + aBuf.append( "]" ); } else { @@ -288,7 +288,7 @@ OUString NeonUri::makeConnectionEndPointString( if ( ( nPort != DEFAULT_HTTP_PORT ) && ( nPort != DEFAULT_HTTPS_PORT ) ) { - aBuf.appendAscii( ":" ); + aBuf.append( ":" ); aBuf.append( OUString::number( nPort ) ); } return aBuf.makeStringAndClear(); diff --git a/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx b/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx index 047b018fe4af..490e75b0c4da 100644 --- a/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx +++ b/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx @@ -183,11 +183,11 @@ static OUString encodeValue( const OUString & rValue ) const sal_Unicode c = pValue[ n ]; if ( '%' == c ) - aResult.appendAscii( "%per;" ); + aResult.append( "%per;" ); else if ( '<' == c ) - aResult.appendAscii( "%lt;" ); + aResult.append( "%lt;" ); else if ( '>' == c ) - aResult.appendAscii( "%gt;" ); + aResult.append( "%gt;" ); else aResult.append( c ); } diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx index efe31e8f9ad4..6f5ee4b6acb8 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx @@ -1955,12 +1955,12 @@ uno::Any Content::open( if ( getResourceType( xEnv ) == FTP ) { // #114653# - aMsg.appendAscii( "FTP over HTTP proxy: resource cannot " + aMsg.append( "FTP over HTTP proxy: resource cannot " "be opened as folder! Wrong Open Mode!" ); } else { - aMsg.appendAscii( "Non-folder resource cannot be " + aMsg.append( "Non-folder resource cannot be " "opened as folder! Wrong Open Mode!" ); } |