- Timestamp:
- Oct 9, 2005, 12:23:57 AM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/load_param.cc
r5332 r5334 74 74 for(int i = 0; i < paramCount; i++) 75 75 { 76 defaultVal[0] = '\0'; 76 77 // parameters parsed 77 78 int tmpType = va_arg (types, int); 78 79 this->paramDesc->types[i] = tmpType; 79 80 //! @todo SWITCH CASE WITH l_[TYPE]_TYPE -> much faster (more usefull)81 80 switch (tmpType) 82 81 { 83 82 case ParameterInt: 84 sprintf(defaultVal, "%d", va_arg(types, l_INT_TYPE));83 sprintf(defaultVal, "%d", va_arg(types, int)); 85 84 break; 86 85 case ParameterLong: … … 97 96 break; 98 97 } 99 100 98 this->paramDesc->defaultValues[i] = new char[strlen(defaultVal)+1]; 101 99 strcpy(this->paramDesc->defaultValues[i], defaultVal); -
trunk/src/util/resource_manager.cc
r5324 r5334 396 396 tmpResource->pointer = new Shader(fullName, secFullName); 397 397 } 398 delete secFullName;398 delete[] secFullName; 399 399 } 400 400 else
Note: See TracChangeset
for help on using the changeset viewer.