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); } } }