diff options
-rw-r--r-- | include/tgbot/TgTypeParser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tgbot/TgTypeParser.h b/include/tgbot/TgTypeParser.h index 9f56b8e..2faaf45 100644 --- a/include/tgbot/TgTypeParser.h +++ b/include/tgbot/TgTypeParser.h @@ -245,7 +245,7 @@ public: std::shared_ptr<T> tryParseJson(JsonToTgTypeFunc<T> parseFunc, const boost::property_tree::ptree& data, const std::string& keyName) const { auto treeItem = data.find(keyName); if (treeItem == data.not_found()) { - return std::make_shared<T>(); + return std::shared_ptr<T>(); } return (this->*parseFunc)(treeItem->second); } |