summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-12-12 12:34:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-12-12 13:33:16 +0000
commitbd6dfbae4fd22767e227c5317d6696a70ed61c58 (patch)
tree93ee88c3a12469493b5086ecbcd7a2dc5795d309 /sd
parentabe9d1463282690313aaf91d2a54011d10b900b9 (diff)
remove unused ctor variant
Change-Id: I0c9afcb5819fc83f75ee8c639de56b788c3d516d
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx18
1 files changed, 13 insertions, 5 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx b/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx
index 8db2bced8b64..c01847d02fd1 100644
--- a/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx
@@ -49,11 +49,19 @@ public:
This just establishes an order so that the STL containers are happy.
The order is not semantically interpreted.
*/
- class DataComparator { public:
- DataComparator (const Request&rRequest):maKey(rRequest.maKey){}
- DataComparator (const CacheKey aKey):maKey(aKey){}
- bool operator() (const Request& rRequest) { return maKey == rRequest.maKey; }
- private: const CacheKey maKey;
+ class DataComparator
+ {
+ public:
+ DataComparator (const CacheKey aKey)
+ : maKey(aKey)
+ {
+ }
+ bool operator() (const Request& rRequest) const
+ {
+ return maKey == rRequest.maKey;
+ }
+ private:
+ const CacheKey maKey;
};
CacheKey maKey;