From 5bdc87d36c16adae03a6d57f9661b380a29d24dd Mon Sep 17 00:00:00 2001 From: puh <-> Date: Sun, 23 Aug 2020 22:29:47 +0300 Subject: appendToJson fix quotes for char* values --- include/tgbot/TgTypeParser.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/tgbot/TgTypeParser.h b/include/tgbot/TgTypeParser.h index d8e2282..6670753 100644 --- a/include/tgbot/TgTypeParser.h +++ b/include/tgbot/TgTypeParser.h @@ -494,6 +494,8 @@ private: json += ','; } + inline void appendToJson(std::string& json, const std::string& varName, const char *value) const { appendToJson(json, varName, std::string(value)); } + void appendToJson(std::string& json, const std::string& varName, const std::string& value) const; }; -- cgit v1.2.3