(svn r15324) -Codechange: unify the class used for comparing of strings for std::map
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user