2 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6 // $Id: LDAPModList.cpp,v 1.3 2000/08/31 17:43:49 rhafer Exp $
8 #include "LDAPModList.h"
10 LDAPModList::LDAPModList(){
13 LDAPModList::LDAPModList(const LDAPModList&){
16 void LDAPModList::addModification(const LDAPModification &mod){
17 m_modList.push_back(mod);
20 LDAPMod** LDAPModList::toLDAPModArray(){
21 LDAPMod **ret = new LDAPMod*[m_modList.size()+1];
22 ret[m_modList.size()]=0;
23 ModList::const_iterator i;
25 for (i=m_modList.begin(); i != m_modList.end(); i++ , j++){
26 ret[j]=i->toLDAPMod();