Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: third_party/WebKit/Source/platform/json/JSONValues.cpp

Issue 2795393002: Make JSONArray::at() a const member function. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/json/JSONValues.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/json/JSONValues.cpp
diff --git a/third_party/WebKit/Source/platform/json/JSONValues.cpp b/third_party/WebKit/Source/platform/json/JSONValues.cpp
index 9927fae52fe4e2a5bacaa9253741881ebc412396..15981e7014d7da4ad5fbc33f096e3de33a9a2b79 100644
--- a/third_party/WebKit/Source/platform/json/JSONValues.cpp
+++ b/third_party/WebKit/Source/platform/json/JSONValues.cpp
@@ -483,7 +483,7 @@ void JSONArray::pushArray(std::unique_ptr<JSONArray> value) {
m_data.push_back(std::move(value));
}
-JSONValue* JSONArray::at(size_t index) {
+JSONValue* JSONArray::at(size_t index) const {
DCHECK_LT(index, m_data.size());
return m_data[index].get();
}
« no previous file with comments | « third_party/WebKit/Source/platform/json/JSONValues.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698