[Libreoffice-commits] .: sd/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Nov 25 01:50:49 PST 2010


 sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1183de99230d48bcba859a4bc6d86b60330ef753
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Nov 25 09:50:43 2010 +0000

    cppcheck: method can be const

diff --git a/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx b/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx
index 2fdf0bc..849a1a7 100644
--- a/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx
@@ -147,7 +147,7 @@ public:
     class CompareWithCache { public:
         CompareWithCache(const ::boost::shared_ptr<PageCacheManager::Cache>& rpCache)
             : mpCache(rpCache) {}
-        bool operator () (const PageCacheContainer::value_type& rValue)
+        bool operator () (const PageCacheContainer::value_type& rValue) const
         { return rValue.second == mpCache; }
     private:
         ::boost::shared_ptr<PageCacheManager::Cache> mpCache;


More information about the Libreoffice-commits mailing list