diff options
Diffstat (limited to 'src/driver.h')
-rw-r--r-- | src/driver.h | 8 |
1 files changed, 1 insertions, 7 deletions
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 <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() |