summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Vrátil <[email protected]>2015-08-06 10:46:44 +0200
committerDan Vrátil <[email protected]>2015-08-06 10:46:44 +0200
commita7482c33467f6f9e845eee6501d0a78f61177cd3 (patch)
tree9b4d7533a4d11a22d0c787463a7c6e1433260c98
parente64a6e44b258e61f65eff6a6c0bbba30f92ade45 (diff)
ProtocolHelper: fix item sorting
Regression introduced when porting away from boost
-rw-r--r--akonadi/src/core/protocolhelper_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/akonadi/src/core/protocolhelper_p.h b/akonadi/src/core/protocolhelper_p.h
index e941b11..6b734e0 100644
--- a/akonadi/src/core/protocolhelper_p.h
+++ b/akonadi/src/core/protocolhelper_p.h
@@ -142,9 +142,9 @@ public:
Container<T> objects(_objects);
using namespace std::placeholders;
std::sort(objects.begin(), objects.end(),
- std::bind([](Entity::Id a, Entity::Id b) -> bool { return a < b; },
- std::bind(&T::id, _1),
- std::bind(&T::id, _1)));
+ [](const T &a, const T &b) -> bool {
+ return a.id() < b.id();
+ });
if (objects.at(0).isValid()) {
QVector<typename T::Id> uids;
uids.reserve(objects.size());