From 4bb860175371969088fcb13f2c7bdb18e3cfdfce Mon Sep 17 00:00:00 2001 From: Andrea Giove Date: Sun, 17 Apr 2016 22:39:38 +0200 Subject: Fixed compilation errors --- include/tgbot/types/MessageEntity.h | 2 +- include/tgbot/types/Voice.h | 2 +- src/Api.cpp | 2 +- src/TgTypeParser.cpp | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/tgbot/types/MessageEntity.h b/include/tgbot/types/MessageEntity.h index befcb3e..37301e6 100644 --- a/include/tgbot/types/MessageEntity.h +++ b/include/tgbot/types/MessageEntity.h @@ -16,7 +16,7 @@ namespace TgBot { */ class MessageEntity { public: - std::shared_ptr Ptr; + typedef std::shared_ptr Ptr; /** * Type of the entity. One of mention (@username), hashtag, bot_command, url, email, bold (bold text), italic (italic text), code (monowidth string), pre (monowidth block), text_link (for clickable text URLs). diff --git a/include/tgbot/types/Voice.h b/include/tgbot/types/Voice.h index 385257d..b148a50 100644 --- a/include/tgbot/types/Voice.h +++ b/include/tgbot/types/Voice.h @@ -16,7 +16,7 @@ namespace TgBot { */ class Voice { public: - std::shared_ptr Ptr; + typedef std::shared_ptr Ptr; /** * Unique identifier for this file. diff --git a/src/Api.cpp b/src/Api.cpp index 55c0320..8fcef97 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -307,7 +307,7 @@ Message::Ptr Api::sendLocation(int64_t chatId, float latitude, float longitude, return TgTypeParser::getInstance().parseJsonAndGetMessage(sendRequest("sendLocation", args)); } -Message::Ptr Api::sendVenue(int64_t chatId, float latitude, float longitude, std::string title, std::string address, std::string foursquareId, bool disableNotification, int32_t replyToMessageId = 0, const GenericReply::Ptr& replyMarkup) const { +Message::Ptr Api::sendVenue(int64_t chatId, float latitude, float longitude, std::string title, std::string address, std::string foursquareId, bool disableNotification, int32_t replyToMessageId, const GenericReply::Ptr& replyMarkup) const { vector args; args.push_back(HttpReqArg("chat_id", chatId)); args.push_back(HttpReqArg("latitude", latitude)); diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index f58bca5..05a287d 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -119,8 +119,8 @@ Message::Ptr TgTypeParser::parseJsonAndGetMessage(const ptree& data) const { result->video = tryParseJson