]> git.mxchange.org Git - flightgear.git/commitdiff
Perhaps it's better to compare the contents of the strings instead of comparing the...
authorehofman <ehofman>
Mon, 18 Jul 2005 11:55:39 +0000 (11:55 +0000)
committerehofman <ehofman>
Mon, 18 Jul 2005 11:55:39 +0000 (11:55 +0000)
src/GUI/new_gui.hxx

index f39ddd232676688224840736c8fe7f9943b8bd8d..8cc39b4753d960246e44a39243d86f547e5915e1 100644 (file)
@@ -193,10 +193,17 @@ protected:
     virtual void setupFont (SGPropertyNode *);
 
 private:
+    struct ltstr
+    {
+        bool operator()(const char* s1, const char* s2) const {
+            return strcmp(s1, s2) < 0;
+        }
+    };
+
     fntTexFont _tex_font;
     puFont _font;
-    map<const char*,FGColor*> _colors;
-    typedef map<const char*,FGColor*>::const_iterator _itt_t;
+    map<const char*,FGColor*, ltstr> _colors;
+    typedef map<const char*,FGColor*, ltstr>::const_iterator _itt_t;
 
     // Free all allocated memory.
     void clear ();