From e6b5869ca8cd3adc52b29335891d993480ea7e59 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 28 Feb 2018 07:54:31 +0100 Subject: [PATCH] fixed missing return statements --- src/mastodon-cpp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mastodon-cpp.cpp b/src/mastodon-cpp.cpp index c00141a..6525a2f 100644 --- a/src/mastodon-cpp.cpp +++ b/src/mastodon-cpp.cpp @@ -140,7 +140,7 @@ const std::uint16_t API::register_app1(const string &instance, string &client_secret, string &url) { - register_app1(client_name, redirect_uri, scopes, website, + return register_app1(client_name, redirect_uri, scopes, website, client_id, client_secret, url); } const std::uint16_t API::register_app1(const string &client_name, @@ -204,7 +204,7 @@ const std::uint16_t API::register_app2(const string &instance, const string &code, string &access_token) { - register_app2(client_id, client_secret, redirect_uri, code, access_token); + return register_app2(client_id, client_secret, redirect_uri, code, access_token); } const std::uint16_t API::register_app2(const string &client_id,