summaryrefslogtreecommitdiffstats
path: root/chrome/test/webdriver/commands/command.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/webdriver/commands/command.cc')
-rw-r--r--chrome/test/webdriver/commands/command.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/test/webdriver/commands/command.cc b/chrome/test/webdriver/commands/command.cc
index 7f4686d..1471e0a 100644
--- a/chrome/test/webdriver/commands/command.cc
+++ b/chrome/test/webdriver/commands/command.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -40,7 +40,7 @@ bool Command::HasParameter(const std::string& key) const {
}
bool Command::IsNullParameter(const std::string& key) const {
- Value* value;
+ const Value* value;
return parameters_.get() &&
parameters_->Get(key, &value) &&
value->IsType(Value::TYPE_NULL);
@@ -76,12 +76,12 @@ bool Command::GetDoubleParameter(const std::string& key, double* out) const {
}
bool Command::GetDictionaryParameter(const std::string& key,
- DictionaryValue** out) const {
+ const DictionaryValue** out) const {
return parameters_.get() != NULL && parameters_->GetDictionary(key, out);
}
bool Command::GetListParameter(const std::string& key,
- ListValue** out) const {
+ const ListValue** out) const {
return parameters_.get() != NULL && parameters_->GetList(key, out);
}