Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8224 in orxonox.OLD for branches/gui/src/lib/shell


Ignore:
Timestamp:
Jun 8, 2006, 10:10:51 AM (19 years ago)
Author:
bensch
Message:

gui: much better directory, now the Directory is completly read in when opening it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/shell/shell_completion_plugin.cc

    r7661 r8224  
    100100      dir.setFileName(ResourceManager::getInstance()->getDataDir() + this->_subDir);
    101101      dir.open();
    102       while(dir)
     102      for(unsigned int i = 0; i < dir.fileCount(); i++ )
    103103      {
    104         completionList.push_back(this->_subDir + "/" + dir.next());
     104        completionList.push_back(this->_subDir + "/" + dir[i]);
    105105      }
    106106    }
     
    118118      std::string fileName;
    119119      std::string currFile;
    120       while(dir)
     120      for(unsigned int i = 0; i < dir.fileCount(); i++)
    121121      {
    122         currFile = dir.next();
     122        currFile = dir[i];
    123123        if (currFile[0] == '.')
    124124         continue;
Note: See TracChangeset for help on using the changeset viewer.