]> git.sur5r.net Git - openldap/blobdiff - contrib/ldapc++/src/LDAPException.cpp
added empty() method to the list classes. (Patch was provided by Dan
[openldap] / contrib / ldapc++ / src / LDAPException.cpp
index f3022d06eb7c34c543035b5478d9133b844f35fe..2b4d417e494d8160578c03c0dfa0b5b6cb14a333 100644 (file)
@@ -46,7 +46,7 @@ const string& LDAPException::getServerMsg() const{
 
 ostream& operator << (ostream& s, LDAPException e){
        s << "Error " << e.m_res_code << ": " << e.m_res_string;
-       if (e.m_err_string.size() > 0) {
+       if (!e.m_err_string.empty()) {
                s << endl <<  "additional info: " << e.m_err_string ;
        }
        return s;