- Timestamp:
- Mar 9, 2006, 10:12:18 PM (19 years ago)
- Location:
- branches/std/src/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/parser/ini_parser/ini_parser.cc
r7205 r7206 56 56 { 57 57 this->deleteSections(); 58 this->setFileName( NULL);58 this->setFileName(""); 59 59 } 60 60 … … 71 71 72 72 this->currentSection = this->sections.end(); 73 this->setFileName( NULL);73 this->setFileName(""); 74 74 } 75 75 -
branches/std/src/lib/particles/particle_system.cc
r7199 r7206 485 485 void ParticleSystem::debug() const 486 486 { 487 PRINT(0)(" ParticleCount: %d emitters: %d, maximumCount: %d :: filled %d%%\n", this->count, this->emitters.size(), this->maxCount, 100*this->count/this->maxCount);487 PRINT(0)(" ParticleCount: %d emitters: %d, maximumCount: %d :: filled %d%%\n", this->count, this->emitters.size(), this->maxCount, ((this->maxCount!=0)?100*this->count/this->maxCount:0)); 488 488 if (deadList) 489 489 { -
branches/std/src/lib/util/loading/load_param.cc
r7203 r7206 234 234 235 235 if (root == NULL) 236 return NULL;236 return ""; 237 237 238 238 element = root->FirstChildElement( parameterName); 239 if( element == NULL) return NULL;239 if( element == NULL) return ""; 240 240 241 241 node = element->FirstChild(); … … 245 245 node = node->NextSibling(); 246 246 } 247 return NULL;247 return ""; 248 248 } 249 249 -
branches/std/src/lib/util/loading/resource_manager.cc
r7204 r7206 888 888 { 889 889 if (fileName.empty() || ResourceManager::getInstance()->getDataDir().empty()) 890 return NULL;890 return ""; 891 891 892 892 std::string retName = ResourceManager::getInstance()->getDataDir() +fileName; … … 894 894 return retName; 895 895 else 896 return NULL;896 return ""; 897 897 } 898 898
Note: See TracChangeset
for help on using the changeset viewer.