[Libreoffice-commits] .: sd/source

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


 sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

New commits:
commit 7c981e8546f16183f35771d3152bf862353ad5ff
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Nov 25 09:55:41 2010 +0000

    cppcheck: methods can be const

diff --git a/sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx b/sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx
index 8b7a211..558cfd6 100644
--- a/sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx
+++ b/sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx
@@ -96,12 +96,14 @@ public:
           maToken(aToken)
     {}
     class TokenComparator
-    { public:
+    {
+    public:
         TokenComparator(::sd::toolpanel::controls::MasterPageContainer::Token aToken)
             : maToken(aToken) {}
-        bool operator () (const Descriptor& rDescriptor)
-        { return maToken==rDescriptor.maToken; }
-    private: ::sd::toolpanel::controls::MasterPageContainer::Token maToken;
+        bool operator () (const Descriptor& rDescriptor) const
+            { return maToken==rDescriptor.maToken; }
+    private:
+        ::sd::toolpanel::controls::MasterPageContainer::Token maToken;
     };
 };
 


More information about the Libreoffice-commits mailing list