mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-22 21:52:46 +01:00
Use QMap::contains()
This commit is contained in:
parent
291b5fad7f
commit
732b37aca0
@ -150,10 +150,9 @@ bool AbstractMessageHandler<MT>::RawMessageArrived(const QByteArray &data) {
|
||||
return false;
|
||||
}
|
||||
|
||||
ReplyType *reply = pending_replies_.take(message.id());
|
||||
|
||||
if (reply) {
|
||||
if (pending_replies_.contains(message.id())) {
|
||||
// This is a reply to a message that we created earlier.
|
||||
ReplyType *reply = pending_replies_.take(message.id());
|
||||
reply->SetReply(message);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user