diff options
author | smatz <smatz@openttd.org> | 2009-02-03 18:08:07 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-02-03 18:08:07 +0000 |
commit | 16d1904e709c97039a6ed1779a6c9956ba57792c (patch) | |
tree | 92c36bf040777addb4a1d7b1f21a0042daf33e26 /src/blitter | |
parent | 00222c6881be06ce493ebf400dde35707210b9ae (diff) | |
download | openttd-16d1904e709c97039a6ed1779a6c9956ba57792c.tar.xz |
(svn r15324) -Codechange: unify the class used for comparing of strings for std::map
Diffstat (limited to 'src/blitter')
-rw-r--r-- | src/blitter/factory.hpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/blitter/factory.hpp b/src/blitter/factory.hpp index 4f7a4b108..a1ab6dc6e 100644 --- a/src/blitter/factory.hpp +++ b/src/blitter/factory.hpp @@ -8,6 +8,7 @@ #include "base.hpp" #include "../debug.h" #include "../string_func.h" +#include "../core/string_compare_type.hpp" #include <map> #if defined(WITH_COCOA) @@ -21,13 +22,6 @@ class BlitterFactoryBase { private: const char *name; - struct StringCompare { - bool operator () (const char *a, const char *b) const - { - return strcmp(a, b) < 0; - } - }; - typedef std::map<const char *, BlitterFactoryBase *, StringCompare> Blitters; static Blitters &GetBlitters() |