From ccc5ea08d64c38a9ce925d448c3010aca19ed35c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 12 Oct 2015 07:45:01 +0200 Subject: cppcheck:variableScope Change-Id: I037feb335499629300309851dcda3bb661f03d4f Reviewed-on: https://gerrit.libreoffice.org/19316 Tested-by: Jenkins Reviewed-by: Noel Grandin --- extensions/source/config/ldap/ldapaccess.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'extensions') diff --git a/extensions/source/config/ldap/ldapaccess.cxx b/extensions/source/config/ldap/ldapaccess.cxx index e62d0b2b0e63..0e25c62d8b2f 100644 --- a/extensions/source/config/ldap/ldapaccess.cxx +++ b/extensions/source/config/ldap/ldapaccess.cxx @@ -66,8 +66,7 @@ static void checkLdapReturnCode(const sal_Char *aOperation, { if (aRetCode == LDAP_SUCCESS) { return ; } - static const sal_Char *kNoSpecificMessage = "No additional information" ; - OUStringBuffer message ; + OUStringBuffer message; if (aOperation != NULL) { @@ -89,7 +88,7 @@ static void checkLdapReturnCode(const sal_Char *aOperation, // This call is thus disabled for the moment. //ldap_memfree(stub) ; } - else { message.appendAscii(kNoSpecificMessage) ; } + else { message.appendAscii("No additional information") ; } message.append(")") ; throw ldap::LdapGenericException(message.makeStringAndClear(), NULL, aRetCode) ; -- cgit