Commit 9277d184 authored by Laurent Montel's avatar Laurent Montel 😁

Add isvalid

parent cd75f320
......@@ -68,6 +68,11 @@ struct ADBLOCKLIB_EXPORT AdBlockResult
{
}
bool isValid() const {
return (!src.isEmpty()) && (type != AdBlockBlockableItemsJob::UnKnown);
}
bool operator==(const AdBlockResult &other) const {
return (src == other.src) && (type == other.type);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment