- LDAPMod **ret = new LDAPMod*[m_modList.size()+1];
- ret[m_modList.size()]=0;
- ModList::const_iterator i;
- int j=0;
- for (i=m_modList.begin(); i != m_modList.end(); i++ , j++){
- ret[j]=i->toLDAPMod();
- }
- return ret;
+ LDAPMod **ret = (LDAPMod**) malloc(
+ (m_modList.size()+1) * sizeof(LDAPMod*));
+ ret[m_modList.size()]=0;
+ LDAPModList::ListType::const_iterator i;
+ int j=0;
+ for (i=m_modList.begin(); i != m_modList.end(); i++ , j++){
+ ret[j]=i->toLDAPMod();
+ }
+ return ret;
+}
+
+bool LDAPModList::empty() const {
+ return m_modList.empty();
+}
+
+unsigned int LDAPModList::size() const {
+ return m_modList.size();