summaryrefslogtreecommitdiff
path: root/src/lib/corelib/language/evaluatorscriptclass.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/language/evaluatorscriptclass.h')
-rw-r--r--src/lib/corelib/language/evaluatorscriptclass.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/corelib/language/evaluatorscriptclass.h b/src/lib/corelib/language/evaluatorscriptclass.h
index fe0b56215..c6c16cf44 100644
--- a/src/lib/corelib/language/evaluatorscriptclass.h
+++ b/src/lib/corelib/language/evaluatorscriptclass.h
@@ -91,7 +91,16 @@ private:
bool isNull() const
{
- return !data;
+ static const QueryResult pristine;
+ return *this == pristine;
+ }
+
+ bool operator==(const QueryResult &rhs) const
+ {
+ return foundInParent == rhs.foundInParent
+ && data == rhs.data
+ && itemOfProperty == rhs.itemOfProperty
+ && value == rhs.value;
}
bool foundInParent = false;