Changeset 124 for cpp/frams/param
- Timestamp:
- 02/10/14 17:09:58 (11 years ago)
- Location:
- cpp/frams/param
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/param/param.cpp
r121 r124 200 200 {int i=findId(prop); if (i>=0) return set(i,v); else return PSET_NOPROPERTY;} 201 201 202 int ParamInterface::save(VirtFILE* f,const SString* altname,bool force)202 int ParamInterface::save(VirtFILE* f,const char* altname,bool force) 203 203 { 204 204 const char *p; … … 206 206 int err=0,i; 207 207 bool withname=false; 208 if (( !altname)||(altname->len()))209 { 210 err|=(fputs(altname? ((const char*)(*altname)):getName(),f)==EOF);208 if ((altname==NULL)||(altname[0]!=0)) 209 { 210 err|=(fputs(altname?altname:getName(),f)==EOF); 211 211 err|=(fputs(":\n",f)==EOF); 212 212 withname=true; -
cpp/frams/param/param.h
r121 r124 152 152 void quickCopyFrom(ParamInterface *src); 153 153 154 int save(VirtFILE*,const SString* altname=0,bool force=0);154 int save(VirtFILE*,const char* altname=NULL,bool force=0); 155 155 int saveprop(VirtFILE*,int i,const char* p,bool force=0); 156 156 void load(VirtFILE*);
Note: See TracChangeset
for help on using the changeset viewer.