changeset 8330:43831761bc77 draft

(svn r11896) -Fix (r11886): a missing const broke compilation with MSVC
author glx <glx@openttd.org>
date Thu, 17 Jan 2008 16:46:41 +0000
parents 9e01414f2f06
children cecb4db460a2
files src/strings_func.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/strings_func.h
+++ b/src/strings_func.h
@@ -72,7 +72,7 @@
 /** Key comparison function for std::map */
 struct StringIDCompare
 {
-	bool operator()(StringID s1, StringID s2) { return StringIDSorter(&s1, &s2) < 0; }
+	bool operator()(StringID s1, StringID s2) const { return StringIDSorter(&s1, &s2) < 0; }
 };
 
 void CheckForMissingGlyphsInLoadedLanguagePack();