diff options
author | Oleg Morozenkov <omorozenkov@gmail.com> | 2018-10-01 12:31:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-01 12:31:23 +0300 |
commit | b35438dd77e4c2391391d7777c0a0b4cfd6e46f5 (patch) | |
tree | 5c3a11d6d888365390a8c0b244ee46fc3fb6550f | |
parent | 5a1bcfdddecaba039e458c957f79ecc60d12a5fb (diff) | |
parent | 32b5ed6cf0466cb644f9adde94164709a4faf5c5 (diff) |
Merge pull request #83 from Smertig/master
Fix: missing return
-rw-r--r-- | src/TgTypeParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index ad200b3..6a0cef9 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -665,6 +665,7 @@ InputMedia::Ptr TgTypeParser::parseJsonAndGetInputMedia(const ptree& data) const result->duration = data.get<int32_t>("duration", 0); result->title = data.get<int32_t>("title", 0); result->performer = data.get<int32_t>("performer", 0); + return result; } else { return nullptr; |