[Libreoffice-commits] .: sd/source
Caolán McNamara
caolan at kemper.freedesktop.org
Thu Nov 25 02:19:31 PST 2010
sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx | 14 +++++++----
1 file changed, 9 insertions(+), 5 deletions(-)
New commits:
commit ecf6edcc98f47fc7b44b57ce18169ee4d5d0f92e
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Nov 25 10:19:25 2010 +0000
cppcheck: methods can be const
diff --git a/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx b/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx
index 275f3b1..06efb96 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx
@@ -54,8 +54,10 @@ public:
{}
SharedMasterPageDescriptor mpDescriptor;
int mnPriority;
- class Compare {public:
- bool operator() (const PreviewCreationRequest& r1,const PreviewCreationRequest& r2)
+ class Compare
+ {
+ public:
+ bool operator() (const PreviewCreationRequest& r1,const PreviewCreationRequest& r2) const
{
if (r1.mnPriority != r2.mnPriority)
{
@@ -70,11 +72,13 @@ public:
}
}
};
- class CompareToken {public:
+ class CompareToken
+ {
+ public:
MasterPageContainer::Token maToken;
CompareToken(MasterPageContainer::Token aToken) : maToken(aToken) {}
- bool operator() (const PreviewCreationRequest& rRequest)
- { return maToken==rRequest.mpDescriptor->maToken; }
+ bool operator() (const PreviewCreationRequest& rRequest) const
+ { return maToken==rRequest.mpDescriptor->maToken; }
};
};
More information about the Libreoffice-commits
mailing list