diff --git a/querymatch.cpp b/querymatch.cpp index 2723c0574..0ba9b5676 100644 --- a/querymatch.cpp +++ b/querymatch.cpp @@ -265,6 +265,11 @@ bool QueryMatch::operator==(const QueryMatch &other) const return (d == other.d); } +bool QueryMatch::operator!=(const QueryMatch &other) const +{ + return (d != other.d); +} + void QueryMatch::run(const RunnerContext &context) const { //kDebug() << "we run the term" << context->query() << "whose type is" << context->mimetype(); diff --git a/querymatch.h b/querymatch.h index 7e3133c30..366767345 100644 --- a/querymatch.h +++ b/querymatch.h @@ -84,6 +84,7 @@ class PLASMA_EXPORT QueryMatch ~QueryMatch(); QueryMatch &operator=(const QueryMatch &other); bool operator==(const QueryMatch &other) const; + bool operator!=(const QueryMatch &other) const; bool operator<(const QueryMatch &other) const;