summaryrefslogtreecommitdiffstats
path: root/base/values.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/values.cc')
-rw-r--r--base/values.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/base/values.cc b/base/values.cc
index 0f30e379..adfc9a8 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -123,6 +123,10 @@ bool Value::GetAsList(ListValue** out_value) {
return false;
}
+bool Value::GetAsList(const ListValue** out_value) const {
+ return false;
+}
+
Value* Value::DeepCopy() const {
// This method should only be getting called for null Values--all subclasses
// need to provide their own implementation;.
@@ -866,6 +870,12 @@ bool ListValue::GetAsList(ListValue** out_value) {
return true;
}
+bool ListValue::GetAsList(const ListValue** out_value) const {
+ if (out_value)
+ *out_value = this;
+ return true;
+}
+
ListValue* ListValue::DeepCopy() const {
ListValue* result = new ListValue;