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-06 21:01:06 +0900 |
commit | 8ad8a74152c5701b6ca1f9a00487ba9257a439b4 (patch) | |
tree | 21f8b9773208844a68efa9002c1116c427607d0e /lib/connection.cpp | |
parent | 0f3efa2f4c43cd65fac8060a70909ad9fd6265d5 (diff) | |
download | libquotient-8ad8a74152c5701b6ca1f9a00487ba9257a439b4.tar.gz libquotient-8ad8a74152c5701b6ca1f9a00487ba9257a439b4.zip |
Avoid Omittable<>::operator bool
It was accidentally (and incorrectly) used in tags sorting code; will be dropped in versions after 0.4.x.
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 df9fb112..6bdedf26 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -831,7 +831,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; } |