Fixed a compilation error in gcc with std::sort().

This commit is contained in:
David Capello 2010-07-05 21:48:27 -03:00
parent ad82f979b4
commit 5f670782de

View File

@ -347,7 +347,7 @@ struct PalEntryWithIndexPredicate {
PalEntryWithIndexPredicate(SortPalette* sort_palette)
: sort_palette(sort_palette) { }
bool operator()(PalEntryWithIndex& a, PalEntryWithIndex& b) {
bool operator()(const PalEntryWithIndex& a, const PalEntryWithIndex& b) {
return sort_palette->operator()(a.color, b.color);
}
};