From c2f8beb5934aa345ff7b4aebc233c73c7642e487 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 31 Aug 2015 08:03:39 +0200 Subject: loplugin:stringconstant: OUStringBuffer: appendAscii -> append Change-Id: Iea6b497b91b8874bfaded494a114cbeef4417b70 --- extensions/source/config/ldap/ldapaccess.cxx | 12 ++++---- extensions/source/logging/csvformatter.cxx | 8 +++--- extensions/source/logging/plaintextformatter.cxx | 32 +++++++++++----------- extensions/source/propctrlr/eformshelper.cxx | 4 +-- extensions/source/propctrlr/eventhandler.cxx | 14 +++++----- .../source/propctrlr/formcomponenthandler.cxx | 6 ++-- extensions/source/propctrlr/pcrcommon.cxx | 2 +- extensions/source/update/check/updateprotocol.cxx | 8 +++--- extensions/source/update/ui/updatecheckui.cxx | 2 +- 9 files changed, 44 insertions(+), 44 deletions(-) (limited to 'extensions') diff --git a/extensions/source/config/ldap/ldapaccess.cxx b/extensions/source/config/ldap/ldapaccess.cxx index 39bd5b86f8ed..e62d0b2b0e63 100644 --- a/extensions/source/config/ldap/ldapaccess.cxx +++ b/extensions/source/config/ldap/ldapaccess.cxx @@ -71,9 +71,9 @@ static void checkLdapReturnCode(const sal_Char *aOperation, if (aOperation != NULL) { - message.appendAscii(aOperation).appendAscii(": ") ; + message.appendAscii(aOperation).append(": ") ; } - message.appendAscii(ldap_err2string(aRetCode)).appendAscii(" (") ; + message.appendAscii(ldap_err2string(aRetCode)).append(" (") ; sal_Char *stub = NULL ; #ifndef LDAP_OPT_SIZELIMIT // for use with OpenLDAP @@ -90,7 +90,7 @@ static void checkLdapReturnCode(const sal_Char *aOperation, //ldap_memfree(stub) ; } else { message.appendAscii(kNoSpecificMessage) ; } - message.appendAscii(")") ; + message.append(")") ; throw ldap::LdapGenericException(message.makeStringAndClear(), NULL, aRetCode) ; } @@ -154,7 +154,7 @@ void LdapConnection::initConnection() { OUStringBuffer message ; - message.appendAscii("Cannot initialise connection to LDAP: No server specified.") ; + message.append("Cannot initialise connection to LDAP: No server specified.") ; throw ldap::LdapConnectionException(message.makeStringAndClear()) ; } @@ -171,9 +171,9 @@ void LdapConnection::initConnection() { OUStringBuffer message ; - message.appendAscii("Cannot initialise connection to LDAP server ") ; + message.append("Cannot initialise connection to LDAP server ") ; message.append(mLdapDefinition.mServer) ; - message.appendAscii(":") ; + message.append(":") ; message.append(mLdapDefinition.mPort) ; throw ldap::LdapConnectionException(message.makeStringAndClear()); } diff --git a/extensions/source/logging/csvformatter.cxx b/extensions/source/logging/csvformatter.cxx index 230c5ee3c551..43a0c6715e25 100644 --- a/extensions/source/logging/csvformatter.cxx +++ b/extensions/source/logging/csvformatter.cxx @@ -220,13 +220,13 @@ namespace logging { OUStringBuffer buf; if(m_LogEventNo) - buf.appendAscii("event no,"); + buf.append("event no,"); if(m_LogThread) - buf.appendAscii("thread,"); + buf.append("thread,"); if(m_LogTimestamp) - buf.appendAscii("timestamp,"); + buf.append("timestamp,"); if(m_LogSource) - buf.appendAscii("class,method,"); + buf.append("class,method,"); sal_Int32 columns = m_Columnnames.getLength(); for(sal_Int32 i=0; i xSubQueries(_xQueryNames->getByName(*pQueryNames),UNO_QUERY); diff --git a/extensions/source/propctrlr/pcrcommon.cxx b/extensions/source/propctrlr/pcrcommon.cxx index df8146329160..f37b6038927f 100644 --- a/extensions/source/propctrlr/pcrcommon.cxx +++ b/extensions/source/propctrlr/pcrcommon.cxx @@ -52,7 +52,7 @@ namespace pcr OUString aTmp( OStringToOUString(sHelpId, RTL_TEXTENCODING_UTF8) ); INetURLObject aHID( aTmp ); if ( aHID.GetProtocol() == INetProtocol::NotValid ) - aBuffer.appendAscii( INET_HID_SCHEME ); + aBuffer.append( INET_HID_SCHEME ); aBuffer.append( aTmp.getStr() ); return aBuffer.makeStringAndClear(); } diff --git a/extensions/source/update/check/updateprotocol.cxx b/extensions/source/update/check/updateprotocol.cxx index 086f7bd8160c..f2aaa4940f37 100644 --- a/extensions/source/update/check/updateprotocol.cxx +++ b/extensions/source/update/check/updateprotocol.cxx @@ -137,13 +137,13 @@ checkForUpdates( return false; // something went wrong .. OUStringBuffer aBuffer; - aBuffer.appendAscii("/child::inst:description[inst:os=\'"); + aBuffer.append("/child::inst:description[inst:os=\'"); aBuffer.append( rOS ); - aBuffer.appendAscii("\' and inst:arch=\'"); + aBuffer.append("\' and inst:arch=\'"); aBuffer.append( rArch ); - aBuffer.appendAscii("\' and inst:gitid!=\'"); + aBuffer.append("\' and inst:gitid!=\'"); aBuffer.append( rGitID ); - aBuffer.appendAscii("\']"); + aBuffer.append("\']"); OUString aXPathExpression = aBuffer.makeStringAndClear(); diff --git a/extensions/source/update/ui/updatecheckui.cxx b/extensions/source/update/ui/updatecheckui.cxx index 55c77b66d2d6..5c83bd8dc764 100644 --- a/extensions/source/update/ui/updatecheckui.cxx +++ b/extensions/source/update/ui/updatecheckui.cxx @@ -333,7 +333,7 @@ void UpdateCheckUI::AddMenuBarIcon( SystemWindow *pSysWin, bool bAddEventHdl ) if( !maBubbleText.isEmpty() ) { if( !maBubbleTitle.isEmpty() ) - aBuf.appendAscii( "\n\n" ); + aBuf.append( "\n\n" ); aBuf.append( maBubbleText ); } -- cgit