Changeset 124 for cpp/frams/param


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

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

Location:
cpp/frams/param
Files:
2 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;
  • cpp/frams/param/param.h

    r121 r124  
    152152void quickCopyFrom(ParamInterface *src);
    153153
    154 int save(VirtFILE*,const SString* altname=0,bool force=0);
     154int save(VirtFILE*,const char* altname=NULL,bool force=0);
    155155int saveprop(VirtFILE*,int i,const char* p,bool force=0);
    156156void load(VirtFILE*);
Note: See TracChangeset for help on using the changeset viewer.