Add explicit to JSONValue constructors (#4665)

This commit is contained in:
Tom Fifield 2024-09-09 22:20:21 +08:00 committed by GitHub
parent e9d55de3cb
commit dc8cc122a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,15 +40,15 @@ class JSONValue
public: public:
JSONValue(/*NULL*/); JSONValue(/*NULL*/);
JSONValue(const char *m_char_value); explicit JSONValue(const char *m_char_value);
JSONValue(const std::string &m_string_value); explicit JSONValue(const std::string &m_string_value);
JSONValue(bool m_bool_value); explicit JSONValue(bool m_bool_value);
JSONValue(double m_number_value); explicit JSONValue(double m_number_value);
JSONValue(int m_integer_value); explicit JSONValue(int m_integer_value);
JSONValue(unsigned int m_integer_value); explicit JSONValue(unsigned int m_integer_value);
JSONValue(const JSONArray &m_array_value); explicit JSONValue(const JSONArray &m_array_value);
JSONValue(const JSONObject &m_object_value); explicit JSONValue(const JSONObject &m_object_value);
JSONValue(const JSONValue &m_source); explicit JSONValue(const JSONValue &m_source);
~JSONValue(); ~JSONValue();
bool IsNull() const; bool IsNull() const;