From c57d27df23aa59058a170701d912645d3ce60810 Mon Sep 17 00:00:00 2001 From: ymuv Date: Thu, 2 Feb 2017 00:07:43 +0200 Subject: Add initializer_list for register same commands. Fix file size mistake. --- src/TgTypeParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/TgTypeParser.cpp') diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index b52533b..8faacff 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -421,7 +421,7 @@ string TgTypeParser::parseUserProfilePhotos(const UserProfilePhotos::Ptr& object File::Ptr TgTypeParser::parseJsonAndGetFile(const boost::property_tree::ptree& data) const { File::Ptr result(new File); result->fileId = data.get("file_id"); - result->filePath = data.get("file_size", 0); + result->fileSize = data.get("file_size", 0); result->filePath = data.get("file_path", ""); return result; } -- cgit v1.2.3