summaryrefslogtreecommitdiff
path: root/src/TgTypeParser.cpp
diff options
context:
space:
mode:
authorJellyBrick <shlee1503@naver.com>2018-06-22 21:11:23 +0900
committerJellyBrick <shlee1503@naver.com>2018-06-22 21:11:23 +0900
commit4cc83d0ea36d4470123bdf77f881dffed9ebd4ac (patch)
treedaca74d51376c797a2eae74f9d91befc1fa05d08 /src/TgTypeParser.cpp
parente252f0aa25bb7087698ed94698a91f9309e61460 (diff)
Fix compilation error (no matching function)
Fix "‘parseSuccessfulPayment’ was not declared in this scope"
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r--src/TgTypeParser.cpp4
1 files changed, 2 insertions, 2 deletions
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<SuccessfulPayment>());
result->currency = data.get<string>("currency");
result->totalAmount = data.get<int32_t>("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);