summaryrefslogtreecommitdiff
path: root/sd/source/ui/toolpanel
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-25 10:19:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-25 10:19:25 +0000
commitc6c2a48654a64a5beabb85a1efed336c25330151 (patch)
treec4169db988a13f1e952e9a9b105127004c8c6c60 /sd/source/ui/toolpanel
parent598e8c5db9f5b0f69ca54765e6f023aeb860feaa (diff)
cppcheck: methods can be const
Diffstat (limited to 'sd/source/ui/toolpanel')
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx b/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx
index 9fceb3270687..3aec7fd8ceab 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; }
};
};