diff --git a/tools/aapt2/ResourceParser.cpp b/tools/aapt2/ResourceParser.cpp index a84c306e2733e..e2ee603ca9169 100644 --- a/tools/aapt2/ResourceParser.cpp +++ b/tools/aapt2/ResourceParser.cpp @@ -802,7 +802,7 @@ bool ResourceParser::parseAttrImpl(xml::XmlPullParser* parser, ParsedResource* o } struct SymbolComparator { - bool operator()(const Attribute::Symbol& a, const Attribute::Symbol& b) { + bool operator()(const Attribute::Symbol& a, const Attribute::Symbol& b) const { return a.symbol.name.value() < b.symbol.name.value(); } };