summaryrefslogtreecommitdiffstats
path: root/base/values.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/values.cc')
-rw-r--r--base/values.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/values.cc b/base/values.cc
index cd0f6a8..c6a377f 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -133,6 +133,13 @@ bool Value::Equals(const Value* other) const {
return other->IsType(TYPE_NULL);
}
+// static
+bool Value::Equals(const Value* a, const Value* b) {
+ if ((a == NULL) && (b == NULL)) return true;
+ if ((a == NULL) ^ (b == NULL)) return false;
+ return a->Equals(b);
+}
+
Value::Value(ValueType type) : type_(type) {
}