mirror of
https://github.com/google/brotli.git
synced 2024-12-29 11:11:09 +00:00
Apply const qualifier to call operator of comparator class.
This commit is contained in:
parent
fe6e9b0148
commit
12c6d1fbe4
@ -42,7 +42,7 @@ struct HistogramPair {
|
||||
};
|
||||
|
||||
struct HistogramPairComparator {
|
||||
bool operator()(const HistogramPair& p1, const HistogramPair& p2) {
|
||||
bool operator()(const HistogramPair& p1, const HistogramPair& p2) const {
|
||||
if (p1.cost_diff != p2.cost_diff) {
|
||||
return p1.cost_diff > p2.cost_diff;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user