X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/10c0d7324d1a25feebaaf6f5bf9b6054e03dd0b3..02efb4e1196ca467e796f65ef1d49db27a5254f8:/stglibs/json.lib/include/stg/json_generator.h diff --git a/stglibs/json.lib/include/stg/json_generator.h b/stglibs/json.lib/include/stg/json_generator.h index 96e454e3..4f1523fc 100644 --- a/stglibs/json.lib/include/stg/json_generator.h +++ b/stglibs/json.lib/include/stg/json_generator.h @@ -49,7 +49,7 @@ struct NullGen : public Gen class BoolGen : public Gen { public: - BoolGen(bool value) : m_value(value) {} + explicit BoolGen(bool value) : m_value(value) {} virtual void run(yajl_gen_t* handle) const; private: bool m_value; @@ -58,7 +58,7 @@ class BoolGen : public Gen class StringGen : public Gen { public: - StringGen(const std::string& value) : m_value(value) {} + explicit StringGen(const std::string& value) : m_value(value) {} virtual void run(yajl_gen_t* handle) const; private: std::string m_value; @@ -67,9 +67,9 @@ class StringGen : public Gen class NumberGen : public Gen { public: - NumberGen(const std::string& value) : m_value(value) {} + explicit NumberGen(const std::string& value) : m_value(value) {} template - NumberGen(const T& value) : m_value(x2str(value)) {} + explicit NumberGen(const T& value) : m_value(x2str(value)) {} virtual void run(yajl_gen_t* handle) const; private: std::string m_value;