summaryrefslogtreecommitdiff
path: root/src/TgTypeParser.cpp
diff options
context:
space:
mode:
authorymuv <yuramuv@gmail.com>2017-02-02 00:07:43 +0200
committerymuv <yuramuv@gmail.com>2017-02-02 00:07:43 +0200
commitc57d27df23aa59058a170701d912645d3ce60810 (patch)
treeff7339a1344950b517578662c6756b6d659e8fde /src/TgTypeParser.cpp
parentcfd0b398c3a300173339533909732b37503c34ed (diff)
Add initializer_list for register same commands.
Fix file size mistake.
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r--src/TgTypeParser.cpp2
1 files changed, 1 insertions, 1 deletions
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<string>("file_id");
- result->filePath = data.get<int32_t>("file_size", 0);
+ result->fileSize = data.get<int32_t>("file_size", 0);
result->filePath = data.get<string>("file_path", "");
return result;
}