From 31ec52b4156cc2b8c40e234f7af427a600918c6b Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Mon, 7 Dec 2009 00:06:35 +0000 Subject: [PATCH] Fix constness issue that makes gcc on SnowLeopard fail to compile. Originally committed to SVN as r3853. --- aegisub/src/block_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/block_cache.h b/aegisub/src/block_cache.h index 6f8143181..b63d98b6a 100644 --- a/aegisub/src/block_cache.h +++ b/aegisub/src/block_cache.h @@ -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