Changeset 348 for cpp/frams/param/multiparamload.cpp
- Timestamp:
- 04/09/15 23:51:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/param/multiparamload.cpp
r333 r348 107 107 else if (status==BeforeUnknown) 108 108 { 109 FMprintf("MultiParamLoader","go",FMLV_WARN,"Skipping object '%s'", (const char*)lastunknown);109 FMprintf("MultiParamLoader","go",FMLV_WARN,"Skipping object '%s'",lastunknown.c_str()); 110 110 loadObjectNow(&emptyparam,false); 111 111 continue; … … 126 126 if (buf.startsWith("#include")) 127 127 { 128 const char* t=strchr( (const char*)buf,'\"'),*t2=0;128 const char* t=strchr(buf.c_str(),'\"'),*t2=0; 129 129 if (t) 130 130 t2=strchr(t+1,'\"'); … … 137 137 { 138 138 const char* thisfilename=file->VgetPath(); 139 FMprintf("MultiParamLoader","go",FMLV_WARN,"invalid \"%s\"%s%s", (const char*)buf,139 FMprintf("MultiParamLoader","go",FMLV_WARN,"invalid \"%s\"%s%s",buf.c_str(), 140 140 (thisfilename?" in ":""),(thisfilename?thisfilename:"")); 141 141 } … … 157 157 FOREACH(ExtObject*,o,objects) 158 158 { 159 if (!strcmp(o->interfaceName(),lastunknown )) {lastobject=*o; break;}159 if (!strcmp(o->interfaceName(),lastunknown.c_str())) {lastobject=*o; break;} 160 160 } 161 161 if (!lastobject.isEmpty()) … … 202 202 newfilename=filename; 203 203 204 if (alreadyIncluded(newfilename ))204 if (alreadyIncluded(newfilename.c_str())) 205 205 { 206 206 FMprintf("MultiParamLoader","include",FMLV_WARN,"circular reference ignored (\"%s\")", 207 (const char*)filename);207 filename.c_str()); 208 208 return; 209 209 } 210 210 211 VirtFILE *f=Vfopen(newfilename ,FOPEN_READ_BINARY);211 VirtFILE *f=Vfopen(newfilename.c_str(),FOPEN_READ_BINARY); 212 212 if (!f) 213 213 { 214 FMprintf("MultiParamLoader","include",FMLV_WARN,"\"%s\" not found", (const char*)newfilename);214 FMprintf("MultiParamLoader","include",FMLV_WARN,"\"%s\" not found",newfilename.c_str()); 215 215 } 216 216 else
Note: See TracChangeset
for help on using the changeset viewer.