From 16d1904e709c97039a6ed1779a6c9956ba57792c Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 3 Feb 2009 18:08:07 +0000 Subject: (svn r15324) -Codechange: unify the class used for comparing of strings for std::map --- src/ai/api/ai_controller.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/ai/api') diff --git a/src/ai/api/ai_controller.hpp b/src/ai/api/ai_controller.hpp index 1f1df743e..d4e2bd6dc 100644 --- a/src/ai/api/ai_controller.hpp +++ b/src/ai/api/ai_controller.hpp @@ -5,10 +5,8 @@ #ifndef AI_CONTROLLER_HPP #define AI_CONTROLLER_HPP +#include "../../core/string_compare_type.hpp" #include -#ifndef AI_HPP -struct ltstr { bool operator()(const char *s1, const char *s2) const { return strcmp(s1, s2) < 0; } }; -#endif /* AI_HPP */ /** * The Controller, the class each AI should extend. It creates the AI, makes @@ -85,7 +83,7 @@ public: static void Print(bool error_msg, const char *message); private: - typedef std::map LoadedLibraryList; + typedef std::map LoadedLibraryList; uint ticks; LoadedLibraryList loaded_library; -- cgit v1.2.3-70-g09d2