Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 4, 2006, 11:54:30 PM (18 years ago)
Author:
bensch
Message:

orxonox: now it is gcc-4.1.1 conform

strangely before this, it was possible to compare and set std::list::iterators to NULL values.
also it now is not allowed to use
void ClassName::functionName(); inside of the header… quite nice feature, and i think compiling is faster too :)

Gentoo Rocks
GCC rocks also with nptl :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/parser/ini_parser/ini_parser.cc

    r9406 r9722  
    165165      else if( (ptr = strchr( lineBegin, '=')) != NULL)
    166166      {
    167         if (currentSection == NULL)
     167        if (currentSection == this->sections.end())
    168168        {
    169169          PRINTF(2)("Not in a Section yet for %s\n", lineBegin);
     
    470470  {
    471471    std::list<IniEntry>::const_iterator entry = this->getEntryIT(entryName, sectionName);
    472     if (entry != NULL &&  (*entry).name == entryName)
     472    if (/** FIXME entry != NULL && */  (*entry).name == entryName)
    473473      return (*entry).value;
    474474    PRINTF(2)("Entry '%s' in section '%s' not found.\n", entryName.c_str(), sectionName.c_str());
     
    627627      if ((*entry).name == entryName)
    628628        break;
    629   if (entry == (*section).entries.end())
    630     return NULL;
    631   else
    632     return entry;
     629  return entry;
    633630}
    634631
     
    650647      if ((*entry).name == entryName)
    651648        break;
    652   if (entry == (*section).entries.end())
    653     return NULL;
    654   else
    655     return entry;
     649  return entry;
    656650}
    657651
Note: See TracChangeset for help on using the changeset viewer.