From 32b5ed6cf0466cb644f9adde94164709a4faf5c5 Mon Sep 17 00:00:00 2001 From: int3 Date: Sun, 30 Sep 2018 20:40:07 +0300 Subject: Fix: missing return --- src/TgTypeParser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/TgTypeParser.cpp') 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("duration", 0); result->title = data.get("title", 0); result->performer = data.get("performer", 0); + return result; } else { return nullptr; -- cgit v1.2.3