From a6b4a09dc81fe3365f84bfd20ea9b4fa108232b8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 27 Jan 2019 04:18:40 +0100 Subject: [PATCH] Changed ids from uint_fast64_t to const string in examples. --- examples/example12_easy_laststatus.cpp | 2 +- examples/example14_easy_treeview.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/example12_easy_laststatus.cpp b/examples/example12_easy_laststatus.cpp index 07f9842..d5de54a 100644 --- a/examples/example12_easy_laststatus.cpp +++ b/examples/example12_easy_laststatus.cpp @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) // Get last status ret = masto.get(API::v1::accounts_id_statuses, { - { "id", { std::to_string(acc.id()) } }, + { "id", { acc.id() } }, { "limit", { "1" } } }, answer); diff --git a/examples/example14_easy_treeview.cpp b/examples/example14_easy_treeview.cpp index e5ff7ef..677536b 100644 --- a/examples/example14_easy_treeview.cpp +++ b/examples/example14_easy_treeview.cpp @@ -86,9 +86,9 @@ std::uint16_t print_status(Easy &masto, const std::string &id, // Only print descendant if it is a direct reply // NOTE: This is a wasteful approach, I use it only in the // interest of more clarity. Don't do this at home. :-) - if (s.in_reply_to_id() == std::stoull(id)) + if (s.in_reply_to_id() == id) { - print_status(masto, std::to_string(s.id()), level + 4); + print_status(masto, s.id(), level + 4); } } }