1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 21:19:55 +00:00

Better name

This commit is contained in:
Alexander "Ace" Olofsson 2012-03-29 21:36:00 +02:00
parent c3944d3e1a
commit 6acd900577

View file

@ -45,7 +45,7 @@ struct ciLessBoost : std::binary_function<std::string, std::string, bool>
}
};
struct mrComparer
struct pathComparer
{
private:
int m_start, m_size;
@ -63,7 +63,7 @@ private:
}
public:
mrComparer(int start, int size) : m_start(start), m_size(size) { }
pathComparer(int start, int size) : m_start(start), m_size(size) { }
bool operator() (const std::string& first, const std::string& other)
{
@ -115,7 +115,7 @@ class DirArchive: public Ogre::FileSystemArchive
current = found->second;
}
mrComparer comp(delimiter, copy.size() - delimiter-1);
pathComparer comp(delimiter, copy.size() - delimiter-1);
return std::binary_search(current.begin(), current.end(), copy, comp);
}