From b0bb5cc23ced4af99a4d6bd822be2e0e50e1af7b Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Mon, 3 Jul 2006 16:29:30 +0000 Subject: [PATCH] minor cleanup --- contrib/ldapc++/src/LDAPAsynConnection.cpp | 1 - contrib/ldapc++/src/LDAPException.h | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/contrib/ldapc++/src/LDAPAsynConnection.cpp b/contrib/ldapc++/src/LDAPAsynConnection.cpp index 6ffb5af4c3..4b2eb53601 100644 --- a/contrib/ldapc++/src/LDAPAsynConnection.cpp +++ b/contrib/ldapc++/src/LDAPAsynConnection.cpp @@ -72,7 +72,6 @@ void LDAPAsynConnection::init(const string& hostname, int port){ } void LDAPAsynConnection::start_tls(){ - int resCode; if( ldap_start_tls_s( cur_session, NULL, NULL ) != LDAP_SUCCESS ) { throw LDAPException(this); } diff --git a/contrib/ldapc++/src/LDAPException.h b/contrib/ldapc++/src/LDAPException.h index 09d94f4ab5..63d813dca1 100644 --- a/contrib/ldapc++/src/LDAPException.h +++ b/contrib/ldapc++/src/LDAPException.h @@ -18,14 +18,15 @@ class LDAPAsynConnection; */ class LDAPException{ - public : + public : /** * Constructs a LDAPException-object from the parameters * @param res_code A valid LDAP result code. * @param err_string An addional error message for the error * that happend (optional) */ - LDAPException(int res_code, const std::string& err_string=std::string()); + LDAPException(int res_code, + const std::string& err_string=std::string()); /** * Constructs a LDAPException-object from the error state of a @@ -43,14 +44,13 @@ class LDAPException{ /** * @return The Result code of the object */ - - int getResultCode() const; + int getResultCode() const; /** * @return The error message that is corresponding to the result * code . */ - const std::string& getResultMsg() const; + const std::string& getResultMsg() const; /** * @return The addional error message of the error (if it was set) @@ -61,11 +61,11 @@ class LDAPException{ * This method can be used to dump the data of a LDAPResult-Object. * It is only useful for debugging purposes at the moment */ - friend std::ostream& operator << (std::ostream &s, LDAPException e); + friend std::ostream& operator << (std::ostream &s, LDAPException e); - private : - int m_res_code; - std::string m_res_string; - std::string m_err_string; + private : + int m_res_code; + std::string m_res_string; + std::string m_err_string; }; #endif //LDAP_EXCEPTION_H -- 2.39.5