From 16d1904e709c97039a6ed1779a6c9956ba57792c Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 3 Feb 2009 18:08:07 +0000 Subject: (svn r15324) -Codechange: unify the class used for comparing of strings for std::map --- src/driver.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/driver.h') diff --git a/src/driver.h b/src/driver.h index 61fede9c4..b2a359b97 100644 --- a/src/driver.h +++ b/src/driver.h @@ -6,6 +6,7 @@ #define DRIVER_H #include "core/enum_type.hpp" +#include "core/string_compare_type.hpp" #include "string_func.h" #include @@ -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 Drivers; static Drivers &GetDrivers() -- cgit v1.2.3-70-g09d2