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

Unified Diff: Source/platform/JSONValues.h

Issue 137933002: Update more platform classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | Source/platform/audio/HRTFPanner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/JSONValues.h
diff --git a/Source/platform/JSONValues.h b/Source/platform/JSONValues.h
index 0ee8d7dbbcb317d14b87c84c3def6f4cd9d3bf02..8d609c64d3d775a0e3e67e773cf51d5d894784a9 100644
--- a/Source/platform/JSONValues.h
+++ b/Source/platform/JSONValues.h
@@ -110,14 +110,14 @@ public:
return adoptRef(new JSONBasicValue(value));
}
- virtual bool asBoolean(bool* output) const;
- virtual bool asNumber(double* output) const;
- virtual bool asNumber(long* output) const;
- virtual bool asNumber(int* output) const;
- virtual bool asNumber(unsigned long* output) const;
- virtual bool asNumber(unsigned* output) const;
+ virtual bool asBoolean(bool* output) const OVERRIDE;
+ virtual bool asNumber(double* output) const OVERRIDE;
+ virtual bool asNumber(long* output) const OVERRIDE;
+ virtual bool asNumber(int* output) const OVERRIDE;
+ virtual bool asNumber(unsigned long* output) const OVERRIDE;
+ virtual bool asNumber(unsigned* output) const OVERRIDE;
- virtual void writeJSON(StringBuilder* output) const;
+ virtual void writeJSON(StringBuilder* output) const OVERRIDE;
private:
explicit JSONBasicValue(bool value) : JSONValue(TypeBoolean), m_boolValue(value) { }
@@ -142,9 +142,9 @@ public:
return adoptRef(new JSONString(value));
}
- virtual bool asString(String* output) const;
+ virtual bool asString(String* output) const OVERRIDE;
- virtual void writeJSON(StringBuilder* output) const;
+ virtual void writeJSON(StringBuilder* output) const OVERRIDE;
private:
explicit JSONString(const String& value) : JSONValue(TypeString), m_stringValue(value) { }
@@ -161,13 +161,13 @@ public:
typedef Dictionary::iterator iterator;
typedef Dictionary::const_iterator const_iterator;
- virtual PassRefPtr<JSONObject> asObject();
+ virtual PassRefPtr<JSONObject> asObject() OVERRIDE;
JSONObject* openAccessors();
protected:
- ~JSONObjectBase();
+ virtual ~JSONObjectBase();
- virtual bool asObject(RefPtr<JSONObject>* output);
+ virtual bool asObject(RefPtr<JSONObject>* output) OVERRIDE;
void setBoolean(const String& name, bool);
void setNumber(const String& name, double);
@@ -193,7 +193,7 @@ protected:
void remove(const String& name);
- virtual void writeJSON(StringBuilder* output) const;
+ virtual void writeJSON(StringBuilder* output) const OVERRIDE;
iterator begin() { return m_data.begin(); }
iterator end() { return m_data.end(); }
@@ -248,14 +248,14 @@ public:
typedef Vector<RefPtr<JSONValue> >::iterator iterator;
typedef Vector<RefPtr<JSONValue> >::const_iterator const_iterator;
- virtual PassRefPtr<JSONArray> asArray();
+ virtual PassRefPtr<JSONArray> asArray() OVERRIDE;
unsigned length() const { return m_data.size(); }
protected:
- ~JSONArrayBase();
+ virtual ~JSONArrayBase();
- virtual bool asArray(RefPtr<JSONArray>* output);
+ virtual bool asArray(RefPtr<JSONArray>* output) OVERRIDE;
void pushBoolean(bool);
void pushInt(int);
@@ -267,7 +267,7 @@ protected:
PassRefPtr<JSONValue> get(size_t index);
- virtual void writeJSON(StringBuilder* output) const;
+ virtual void writeJSON(StringBuilder* output) const OVERRIDE;
iterator begin() { return m_data.begin(); }
iterator end() { return m_data.end(); }
« no previous file with comments | « no previous file | Source/platform/audio/HRTFPanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698