diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-25 10:19:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-25 10:19:25 +0000 |
commit | c6c2a48654a64a5beabb85a1efed336c25330151 (patch) | |
tree | c4169db988a13f1e952e9a9b105127004c8c6c60 /sd/source/ui/toolpanel | |
parent | 598e8c5db9f5b0f69ca54765e6f023aeb860feaa (diff) |
cppcheck: methods can be const
Diffstat (limited to 'sd/source/ui/toolpanel')
-rw-r--r-- | sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx | 14 |
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; } }; }; |