Skip to content

Commit

Permalink
Avoid Omittable<>::operator bool
Browse files Browse the repository at this point in the history
It was accidentally (and incorrectly) used in tags sorting code; will be dropped in versions after 0.4.x.
  • Loading branch information
KitsuneRal committed Dec 6, 2018
1 parent 0f3efa2 commit 8ad8a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8ad8a74

Please sign in to comment.