Ignore:
Timestamp:
02/10/14 17:09:58 (8 years ago)
Author:
sz
Message:

Param::save altname argument is now more convenient const char*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/param/param.cpp

    r121 r124  
    200200{int i=findId(prop); if (i>=0) return set(i,v); else return PSET_NOPROPERTY;}
    201201
    202 int ParamInterface::save(VirtFILE* f,const SString* altname,bool force)
     202int ParamInterface::save(VirtFILE* f,const char* altname,bool force)
    203203{
    204204const char *p;
     
    206206int err=0,i;
    207207bool withname=false;
    208 if ((!altname)||(altname->len()))
    209         {
    210         err|=(fputs(altname?((const char*)(*altname)):getName(),f)==EOF);
     208if ((altname==NULL)||(altname[0]!=0))
     209        {
     210        err|=(fputs(altname?altname:getName(),f)==EOF);
    211211        err|=(fputs(":\n",f)==EOF);
    212212        withname=true;
Note: See TracChangeset for help on using the changeset viewer.