Mark CURLWrapper::escape_url() and unescape_url() nodiscard.

This commit is contained in:
tastytea 2020-01-12 17:01:09 +01:00
parent 78ef177e58
commit b4428ed823
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -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(),