(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 d23db8306e
commit 5ad1cd32b2
10 changed files with 34 additions and 28 deletions

View File

@@ -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()