summaryrefslogtreecommitdiff
path: root/runtime/string_reference.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/string_reference.h')
-rw-r--r--runtime/string_reference.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/string_reference.h b/runtime/string_reference.h
index 0fc06e6389..6ba47736ec 100644
--- a/runtime/string_reference.h
+++ b/runtime/string_reference.h
@@ -41,7 +41,7 @@ struct StringReference {
// Compare only the reference and not the string contents.
struct StringReferenceComparator {
- bool operator()(const StringReference& a, const StringReference& b) {
+ bool operator()(const StringReference& a, const StringReference& b) const {
if (a.dex_file != b.dex_file) {
return a.dex_file < b.dex_file;
}