(svn r15324) -Codechange: unify the class used for comparing of strings for std::map

This commit is contained in:
smatz
2009-02-03 18:08:07 +00:00
parent d23db8306e
commit 5ad1cd32b2
10 changed files with 34 additions and 28 deletions

View File

@@ -7,14 +7,11 @@
#include <map>
#include "ai_info.hpp"
#ifndef AI_HPP
struct ltstr { bool operator()(const char *s1, const char *s2) const { return strcmp(s1, s2) < 0; } };
#endif /* AI_HPP */
#include "../core/string_compare_type.hpp"
class AIConfig {
private:
typedef std::map<const char *, int, ltstr> SettingValueList;
typedef std::map<const char *, int, StringCompare> SettingValueList;
public:
AIConfig() :