Fix constness issue that makes gcc on SnowLeopard fail to compile.

Originally committed to SVN as r3853.
This commit is contained in:
Kevin Ollivier 2009-12-07 00:06:35 +00:00
parent fc75937466
commit 31ec52b415

View file

@ -131,7 +131,7 @@ class DataBlockCache {
MacroBlock *mb;
AccessData(MacroBlock *_mb) : mb(_mb) { }
// Sort in decreasing order: most accesses first
bool operator < (const AccessData &other) { return mb->access_count > other.mb->access_count; }
bool operator < (const AccessData &other) const { return mb->access_count > other.mb->access_count; }
};
/// @brief Dispose of all blocks in a macroblock and mark it empty