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 | 5ad1cd32b2f630f413646131fbdfbae85b3c72f8 (patch) | |
tree | 92c36bf040777addb4a1d7b1f21a0042daf33e26 /src/blitter | |
parent | d23db8306e55b6cd471d848c6825c78c5269f5f9 (diff) | |
download | openttd-5ad1cd32b2f630f413646131fbdfbae85b3c72f8.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() |