summaryrefslogtreecommitdiff
path: root/include/tgbot
diff options
context:
space:
mode:
authorpuh <->2020-08-23 22:29:47 +0300
committerpuh <->2020-08-23 22:29:47 +0300
commit5bdc87d36c16adae03a6d57f9661b380a29d24dd (patch)
treec4411bea162b7f9f1471d2525f773a6b4c005414 /include/tgbot
parent4009b7ea603dcd7f21c6e852497daba7b0a1a6b3 (diff)
appendToJson fix quotes for char* values
Diffstat (limited to 'include/tgbot')
-rw-r--r--include/tgbot/TgTypeParser.h2
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;
};