1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +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: private:
int m_start, m_size; int m_start, m_size;
@ -63,7 +63,7 @@ private:
} }
public: 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) bool operator() (const std::string& first, const std::string& other)
{ {
@ -115,7 +115,7 @@ class DirArchive: public Ogre::FileSystemArchive
current = found->second; 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); return std::binary_search(current.begin(), current.end(), copy, comp);
} }