From 4cc83d0ea36d4470123bdf77f881dffed9ebd4ac Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Fri, 22 Jun 2018 21:11:23 +0900 Subject: Fix compilation error (no matching function) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix "‘parseSuccessfulPayment’ was not declared in this scope" --- src/TgTypeParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/TgTypeParser.cpp') diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index 9c85b60..4eaeaea 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -2007,7 +2007,7 @@ string TgTypeParser::parseShippingQuery(const ShippingQuery::Ptr& object) const return result; } -SuccessfulPayment::Ptr TgTypeParser::parseJsonAndGetSucessfulPayment(const boost::property_tree::ptree& data) const { +SuccessfulPayment::Ptr TgTypeParser::parseJsonAndGetSuccessfulPayment(const boost::property_tree::ptree& data) const { auto result(make_shared()); result->currency = data.get("currency"); result->totalAmount = data.get("total_amount"); @@ -2017,7 +2017,7 @@ SuccessfulPayment::Ptr TgTypeParser::parseJsonAndGetSucessfulPayment(const boost return result; } -std::string TgTypeParser::parseSucessfulPayment(const SuccessfulPayment::Ptr& object) const { +std::string TgTypeParser::parseSuccessfulPayment(const SuccessfulPayment::Ptr& object) const { string result; result += '{'; appendToJson(result, "currency", object->currency); -- cgit v1.2.3