summaryrefslogtreecommitdiff
path: root/include/tgbot
diff options
context:
space:
mode:
authornesc1 <nuno.esculcas@gmail.com>2020-10-29 09:49:55 +0000
committerGitHub <noreply@github.com>2020-10-29 09:49:55 +0000
commit12c6560123aece5cec9f2a16c652cf1f89d751ea (patch)
tree845efa564f9fd2b80a699810aadba6ff44fde989 /include/tgbot
parentcabdab13f24d430112b227d6c3feb7a6548fb74e (diff)
Update include/tgbot/TgTypeParser.h
Co-authored-by: JellyBrick <shlee1503@naver.com>
Diffstat (limited to 'include/tgbot')
-rw-r--r--include/tgbot/TgTypeParser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/tgbot/TgTypeParser.h b/include/tgbot/TgTypeParser.h
index 45650c7..e9f79e2 100644
--- a/include/tgbot/TgTypeParser.h
+++ b/include/tgbot/TgTypeParser.h
@@ -495,9 +495,9 @@ private:
}
inline void appendToJson(std::string& json, const std::string& varName, const char* value) const {
- if(value!=nullptr){
- std::string strvalue(value);
- appendToJson(json,varName,strvalue);
+ if (value != nullptr){
+ std::string strValue(value);
+ appendToJson(json, varName, strValue);
}
}