diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:03:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:03:39 +0200 |
commit | c2f8beb5934aa345ff7b4aebc233c73c7642e487 (patch) | |
tree | 512439e5b7ffce02c3af1cd2a390cdf5c61fca3c /extensions/source/config | |
parent | 6f6884b198a1ba13a722810da20b7dae7dd84833 (diff) |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: Iea6b497b91b8874bfaded494a114cbeef4417b70
Diffstat (limited to 'extensions/source/config')
-rw-r--r-- | extensions/source/config/ldap/ldapaccess.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
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()); } |