diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-14 20:20:33 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-14 20:20:33 +0900 |
commit | 9d3ea273e291a40e34f86b4beeaa6b59bc3260dd (patch) | |
tree | e830b951af01f1f38c7c2532452e228ddac4dc91 | |
parent | f96592d21940f5deccfed4173b54a7d9ba35fd1c (diff) | |
download | libquotient-9d3ea273e291a40e34f86b4beeaa6b59bc3260dd.tar.gz libquotient-9d3ea273e291a40e34f86b4beeaa6b59bc3260dd.zip |
Another fix for CI on OSX
-rw-r--r-- | room.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -42,7 +42,6 @@ #include <QtCore/QElapsedTimer> #include <array> -#include <functional> using namespace QMatrixClient; using namespace std::placeholders; @@ -273,7 +272,7 @@ Room::Private::promoteReadMarker(User* u, Room::rev_iter_t newMarker, if (isLocalUser(u) && unreadMessages) { auto stillUnreadMessagesCount = count_if(eagerMarker, timeline.cend(), - bind(&Room::Private::isEventNotable, this, _1)); + std::bind(&Room::Private::isEventNotable, this, _1)); if (stillUnreadMessagesCount == 0) { @@ -859,7 +858,7 @@ void Room::Private::checkUnreadMessages(timeline_iter_t from) { Q_ASSERT(from < timeline.cend()); const auto newUnreadMessages = count_if(from, timeline.cend(), - bind(&Room::Private::isEventNotable, this, _1)); + std::bind(&Room::Private::isEventNotable, this, _1)); // The first event in the just-added batch (referred to by upTo.base()) // defines whose read marker can possibly be promoted any further over |