]> git.sur5r.net Git - openldap/blobdiff - contrib/ldapc++/src/LDAPModification.cpp
Entry rwlock is no longer needed as concurrency is managed
[openldap] / contrib / ldapc++ / src / LDAPModification.cpp
index cab3176f08a6fd60e68effd82ae39b220e008fb5..969385275367489e0fc755b974ef97de35d174ee 100644 (file)
@@ -13,27 +13,27 @@ LDAPModification::LDAPModification(const LDAPAttribute& attr, mod_op op){
     DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPModification::LDAPModification()" << endl);
     DEBUG(LDAP_DEBUG_CONSTRUCT | LDAP_DEBUG_PARAMETER,
             "   attr:" << attr << endl);
-       m_attr = attr;
-       m_mod_op = op;
+    m_attr = attr;
+    m_mod_op = op;
 }
 
 LDAPMod* LDAPModification::toLDAPMod() const  {
     DEBUG(LDAP_DEBUG_TRACE,"LDAPModification::toLDAPMod()" << endl);
-       LDAPMod* ret=m_attr.toLDAPMod();
+    LDAPMod* ret=m_attr.toLDAPMod();
 
-       //The mod_op value of the LDAPMod-struct needs to be ORed with the right
-       // LDAP_MOD_* constant to preserve the BIN-flag (see CAPI-draft for 
+    //The mod_op value of the LDAPMod-struct needs to be ORed with the right
+    // LDAP_MOD_* constant to preserve the BIN-flag (see CAPI-draft for 
     // explanation of the LDAPMod struct)
-       switch (m_mod_op){
-               case OP_ADD :
-                       ret->mod_op |= LDAP_MOD_ADD;
-               break;
-               case OP_DELETE :
-                       ret->mod_op |= LDAP_MOD_DELETE;
-               break;
-               case OP_REPLACE :
-                       ret->mod_op |= LDAP_MOD_REPLACE;
-               break;
-       }
-       return ret;
+    switch (m_mod_op){
+       case OP_ADD :
+           ret->mod_op |= LDAP_MOD_ADD;
+       break;
+       case OP_DELETE :
+           ret->mod_op |= LDAP_MOD_DELETE;
+       break;
+       case OP_REPLACE :
+           ret->mod_op |= LDAP_MOD_REPLACE;
+       break;
+    }
+    return ret;
 }