From 82727a8713e5ac551f6ea87f6a8cf155b73d2464 Mon Sep 17 00:00:00 2001 From: glx Date: Thu, 17 Jan 2008 16:46:41 +0000 Subject: (svn r11896) -Fix (r11886): a missing const broke compilation with MSVC --- src/strings_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strings_func.h b/src/strings_func.h index 9067f7049..2b876038b 100644 --- a/src/strings_func.h +++ b/src/strings_func.h @@ -72,7 +72,7 @@ int CDECL StringIDSorter(const void *a, const void *b); /** 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(); -- cgit v1.2.3-54-g00ecf