diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2020-08-25 20:45:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-25 20:45:12 +0300 |
commit | 9fe48a3628b58dc259c36a106630d8134d029da5 (patch) | |
tree | c4411bea162b7f9f1471d2525f773a6b4c005414 | |
parent | 4009b7ea603dcd7f21c6e852497daba7b0a1a6b3 (diff) | |
parent | 5bdc87d36c16adae03a6d57f9661b380a29d24dd (diff) |
Merge pull request #148 from puuuuh/master
appendToJson fix quotes for char* values
-rw-r--r-- | include/tgbot/TgTypeParser.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; }; |