Ignore:
Timestamp:
06/18/12 16:33:01 (13 years ago)
Author:
Mathieu Morlighem
Message:

changing xmalloc to xNew and xfree to xDelete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/Container/Options.cpp

    r12365 r12459  
    222222        else{
    223223                stringsize=strlen(default_value)+1;
    224                 outstring=(char*)xmalloc(stringsize*sizeof(char));
     224                outstring=xNew<char>(stringsize);
    225225                memcpy(outstring,default_value,stringsize*sizeof(char));
    226226                *pvalue=outstring;
     
    246246                if(option->ObjectEnum()==OptionCellEnum){
    247247                        if (option->NumEl()) {
    248                                 *ppvalue=(char **) xmalloc(option->NumEl()*sizeof(char *));
     248                                *ppvalue=xNew<char*>(option->NumEl());
    249249                                if (numel) *numel=option->NumEl();
    250250                                option->Get(&options);
Note: See TracChangeset for help on using the changeset viewer.