diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-12-06 20:57:37 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-12-08 16:25:19 +0900 |
commit | c665883be52016be51f5b0a902e43885b024a8ac (patch) | |
tree | 7673a01212e2dabe1a96b6cf66c3de92afd4292c /lib/connection.cpp | |
parent | bea4a7c81769c7e241478e4b0b29c62f389bc957 (diff) | |
download | libquotient-c665883be52016be51f5b0a902e43885b024a8ac.tar.gz libquotient-c665883be52016be51f5b0a902e43885b024a8ac.zip |
Connection: Avoid Omittable<>::operator bool
It was accidentally (and incorrectly) used in tags sorting code;
will be dropped from Omittable<> in a later commit.
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r-- | lib/connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 9372acd5..26c33767 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -825,7 +825,7 @@ QHash<QString, QVector<Room*>> Connection::tagsToRooms() const for (auto it = result.begin(); it != result.end(); ++it) std::sort(it->begin(), it->end(), [t=it.key()] (Room* r1, Room* r2) { - return r1->tags().value(t).order < r2->tags().value(t).order; + return r1->tags().value(t) < r2->tags().value(t); }); return result; } |