Use QMap::contains()
This commit is contained in:
@@ -150,10 +150,9 @@ bool AbstractMessageHandler<MT>::RawMessageArrived(const QByteArray &data) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReplyType *reply = pending_replies_.take(message.id());
|
if (pending_replies_.contains(message.id())) {
|
||||||
|
|
||||||
if (reply) {
|
|
||||||
// This is a reply to a message that we created earlier.
|
// This is a reply to a message that we created earlier.
|
||||||
|
ReplyType *reply = pending_replies_.take(message.id());
|
||||||
reply->SetReply(message);
|
reply->SetReply(message);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user