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

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

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 | « no previous file | third_party/WebKit/Source/platform/json/JSONValues.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/json/JSONValues.h
diff --git a/third_party/WebKit/Source/platform/json/JSONValues.h b/third_party/WebKit/Source/platform/json/JSONValues.h
index 4a37cd7913cff7254aa28ade9b781bf7856ca8c2..2f799a696f8fb7819fe177a85e0f1bfe2da9ae61 100644
--- a/third_party/WebKit/Source/platform/json/JSONValues.h
+++ b/third_party/WebKit/Source/platform/json/JSONValues.h
@@ -42,6 +42,7 @@
#include "wtf/text/WTFString.h"
#include <memory>
+#include <utility>
namespace blink {
@@ -269,7 +270,7 @@ class PLATFORM_EXPORT JSONArray : public JSONValue {
void pushObject(std::unique_ptr<JSONObject>);
void pushArray(std::unique_ptr<JSONArray>);
- JSONValue* at(size_t index);
+ JSONValue* at(size_t index) const;
size_t size() const { return m_data.size(); }
protected:
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/json/JSONValues.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698