(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 00222c6881
commit 16d1904e70
10 changed files with 34 additions and 28 deletions

View File

@@ -6,6 +6,7 @@
#define DRIVER_H
#include "core/enum_type.hpp"
#include "core/string_compare_type.hpp"
#include "string_func.h"
#include <map>
@@ -39,13 +40,6 @@ private:
const char *name;
int priority;
struct StringCompare {
bool operator () (const char *a, const char *b) const
{
return strcmp(a, b) < 0;
}
};
typedef std::map<const char *, DriverFactoryBase *, StringCompare> Drivers;
static Drivers &GetDrivers()