@@ -112,12 +112,12 @@ class JSON_API StreamWriterBuilder : public StreamWriter::Factory {
112112 Json::Value settings_;
113113
114114 StreamWriterBuilder ();
115- virtual ~StreamWriterBuilder ();
115+ ~StreamWriterBuilder () override ;
116116
117117 /* *
118118 * \throw std::exception if something goes wrong (e.g. invalid settings)
119119 */
120- virtual StreamWriter* newStreamWriter () const ;
120+ StreamWriter* newStreamWriter () const override ;
121121
122122 /* * \return true if 'settings' are legal and consistent;
123123 * otherwise, indicate bad settings via 'invalid'.
@@ -158,7 +158,7 @@ class JSON_API FastWriter : public Writer {
158158
159159public:
160160 FastWriter ();
161- virtual ~FastWriter () {}
161+ ~FastWriter () override {}
162162
163163 void enableYAMLCompatibility ();
164164
@@ -172,7 +172,7 @@ class JSON_API FastWriter : public Writer {
172172 void omitEndingLineFeed ();
173173
174174public: // overridden from Writer
175- virtual std::string write (const Value& root);
175+ std::string write (const Value& root) override ;
176176
177177private:
178178 void writeValue (const Value& value);
@@ -210,14 +210,14 @@ class JSON_API FastWriter : public Writer {
210210class JSON_API StyledWriter : public Writer {
211211public:
212212 StyledWriter ();
213- virtual ~StyledWriter () {}
213+ ~StyledWriter () override {}
214214
215215public: // overridden from Writer
216216 /* * \brief Serialize a Value in <a HREF="http://www.json.org">JSON</a> format.
217217 * \param root Value to serialize.
218218 * \return String containing the JSON document that represents the root value.
219219 */
220- virtual std::string write (const Value& root);
220+ std::string write (const Value& root) override ;
221221
222222private:
223223 void writeValue (const Value& value);
0 commit comments