1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 22:15:37 +00:00

minor performance improvement

This commit is contained in:
Marc Zinnschlag 2011-06-08 00:52:25 +02:00
parent 4f304cfff2
commit d59856af5c

View file

@ -162,7 +162,7 @@ class DirArchive: public Ogre::FileSystemArchive
//std::transform(file.begin(), file.end(), file.begin(), tolower); //std::transform(file.begin(), file.end(), file.begin(), tolower);
//boost::filesystem::path folderpath = folder; //boost::filesystem::path folderpath = folder;
std::vector<std::string> current = m[folder]; std::vector<std::string>& current = m[folder];
for(std::vector<std::string>::iterator iter = current.begin(); iter != current.end(); iter++) for(std::vector<std::string>::iterator iter = current.begin(); iter != current.end(); iter++)
{ {