From b4428ed82379c4a9bcfa9c42d6980c267fce20d7 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 12 Jan 2020 17:01:09 +0100 Subject: [PATCH] Mark CURLWrapper::escape_url() and unescape_url() nodiscard. --- include/curl_wrapper.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/curl_wrapper.hpp b/include/curl_wrapper.hpp index 4b681c0..f8e567b 100644 --- a/include/curl_wrapper.hpp +++ b/include/curl_wrapper.hpp @@ -157,6 +157,7 @@ public: * * @since 0.3.0 */ + [[nodiscard]] inline string escape_url(const string_view url) const { char *cbuf{curl_easy_escape(_connection, url.data(), @@ -178,6 +179,7 @@ public: * * @since 0.3.0 */ + [[nodiscard]] inline string unescape_url(const string_view url) const { char *cbuf{curl_easy_unescape(_connection, url.data(),