summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yi Kong <yikong@google.com> 2017-05-02 05:44:56 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-05-02 05:44:58 +0000
commit0d12a2aa35b3b93d81645e93d2fcf915864934a6 (patch)
treee388d6e6873158fed4bd365fe25b04c18f1fa0fa
parentb4d4dbc5c3ac7d097a596b133eabd703f00549b4 (diff)
parentb4be87198a4a674036aebaeed84b61c6e6b4e7b5 (diff)
Merge "StringReference comparator operator is missing const"
-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;
}