From e7d1808f851849b3707eba267f20ebae09e8cd17 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 17 May 2018 18:22:38 +0200 Subject: [PATCH] Made deprecation warnings easier to understand --- src/mastodon-cpp.hpp | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/mastodon-cpp.hpp b/src/mastodon-cpp.hpp index 2730b63..299f39c 100644 --- a/src/mastodon-cpp.hpp +++ b/src/mastodon-cpp.hpp @@ -425,12 +425,14 @@ public: */ const uint_fast16_t get(const string &call, string &answer); - [[deprecated("Will vanish in 1.0.0, use get() without argument instead.")]] + [[deprecated("Will vanish in 1.0.0, use get() without string argument " + "instead.")]] const uint_fast16_t get(const Mastodon::API::v1 &call, const string &argument, string &answer); - [[deprecated("Will vanish in 1.0.0, use get() without argument instead.")]] + [[deprecated("Will vanish in 1.0.0, use get() without string argument " + "instead.")]] const uint_fast16_t get(const Mastodon::API::v1 &call, const string &argument, const parametermap ¶meters, @@ -484,7 +486,8 @@ public: string &answer, std::unique_ptr &ptr); - [[deprecated("Will vanish in 1.0.0, use get_stream() without argument instead.")]] + [[deprecated("Will vanish in 1.0.0, use get_stream() without string " + "argument instead.")]] const uint_fast16_t get_stream(const Mastodon::API::v1 &call, const string &argument, string &answer, @@ -553,12 +556,14 @@ public: const parametermap ¶meters, string &answer); - [[deprecated("Will vanish in 1.0.0, use post() without argument instead.")]] + [[deprecated("Will vanish in 1.0.0, use post() without string argument " + "instead.")]] const uint_fast16_t post(const Mastodon::API::v1 &call, const string &argument, string &answer); - [[deprecated("Will vanish in 1.0.0, use post() without argument instead.")]] + [[deprecated("Will vanish in 1.0.0, use post() without string argument " + "instead.")]] const uint_fast16_t post(const Mastodon::API::v1 &call, const string &argument, const parametermap ¶meters, @@ -596,7 +601,8 @@ public: const parametermap ¶meters, string &answer); - [[deprecated("Will vanish in 1.0.0, use put() without argument instead.")]] + [[deprecated("Will vanish in 1.0.0, use put() without string argument " + "instead.")]] const uint_fast16_t put(const Mastodon::API::v1 &call, const string &argument, const parametermap ¶meters, @@ -628,11 +634,13 @@ public: const parametermap ¶meters, string &answer); - [[deprecated("Will vanish in 1.0.0, use del() without argument instead.")]] + [[deprecated("Will vanish in 1.0.0, use del() without string argument " + "instead.")]] const uint_fast16_t del(const Mastodon::API::v1 &call, const string &argument); - [[deprecated("Will vanish in 1.0.0, use del() without argument instead.")]] + [[deprecated("Will vanish in 1.0.0, use del() without string argument " + "instead.")]] const uint_fast16_t del(const Mastodon::API::v1 &call, const string &argument, const parametermap ¶meters);