Changeset 348 for cpp/frams/param/mutableparam.cpp
- Timestamp:
- 04/09/15 23:51:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/param/mutableparam.cpp
r286 r348 33 33 if (ignoreprefix) 34 34 { 35 const char *noprefix= (const char*)groupname(i);35 const char *noprefix=groupname(i).c_str(); 36 36 if ((int)strlen(noprefix) < skipprefix) continue; 37 37 noprefix+=skipprefix; 38 if (!strcmp(noprefix, (const char*)name)) return i;38 if (!strcmp(noprefix,name.c_str())) return i; 39 39 } 40 40 else … … 183 183 void MutableParam::p_addprop(ExtValue *args,ExtValue *ret) 184 184 { 185 int i=addProperty(0,args[2].getString() ,args[1].getString(),args[0].getString());185 int i=addProperty(0,args[2].getString().c_str(),args[1].getString().c_str(),args[0].getString().c_str()); 186 186 ret->setInt(i); 187 187 } … … 284 284 { 285 285 SString *n=(SString*)store(i); 286 int prop=p.findId( (const char*)*n);286 int prop=p.findId(n->c_str()); 287 287 if (prop<0) 288 prop=p.addProperty(0, (const char*)*n,"x",0,0,0,0,-1);288 prop=p.addProperty(0,n->c_str(),"x",0,0,0,0,-1); 289 289 p.setExtValue(prop,*(ExtValue*)store(i+1)); 290 290 }
Note: See TracChangeset
for help on using the changeset viewer.