summaryrefslogtreecommitdiff
path: root/src/TgTypeParser.cpp
diff options
context:
space:
mode:
authorint3 <smertig_zhyk@mail.ru>2018-09-30 20:40:07 +0300
committerint3 <smertig_zhyk@mail.ru>2018-09-30 20:40:07 +0300
commit32b5ed6cf0466cb644f9adde94164709a4faf5c5 (patch)
tree5c3a11d6d888365390a8c0b244ee46fc3fb6550f /src/TgTypeParser.cpp
parent5a1bcfdddecaba039e458c957f79ecc60d12a5fb (diff)
Fix: missing return
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r--src/TgTypeParser.cpp1
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;