]> git.cworth.org Git - apitrace/commitdiff
Preserve const-ness in string comparer.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 7 Oct 2011 23:17:25 +0000 (00:17 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 7 Oct 2011 23:17:25 +0000 (00:17 +0100)
retrace.hpp

index 806d6ed9c944b328f451d3d4779810824b8da47b..b697adb6b2c7fa7495be034f831c1f47d23b025f 100644 (file)
@@ -97,7 +97,7 @@ struct Entry {
 
 
 struct stringComparer {
 
 
 struct stringComparer {
-  bool operator() (const char *a, const  char *b) {
+  bool operator() (const char *a, const  char *b) const {
     return strcmp(a, b) < 0;
   }
 };
     return strcmp(a, b) < 0;
   }
 };