From f75b1e7d10e37bb7d702f30203bf6c3d5d0960d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Fri, 11 May 2012 15:46:29 +0200 Subject: [PATCH] Add operator != to Plasma::QueryMatch --- querymatch.cpp | 5 +++++ querymatch.h | 1 + 2 files changed, 6 insertions(+) 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;