made urlencode() static

This commit is contained in:
tastytea 2018-05-09 06:27:11 +02:00
parent a65bb8786a
commit 897e36dc44
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (mastodon-cpp
VERSION 0.12.0
VERSION 0.12.1
LANGUAGES CXX
)

View File

@ -129,7 +129,7 @@ const curlpp::Forms API::maptoformdata(const parametermap &map)
return formdata;
}
const std::string API::urlencode(const std::string &str) const
const std::string API::urlencode(const std::string &str)
{
return curlpp::escape(str);
}

View File

@ -274,7 +274,7 @@ public:
*
* @return The percent-encoded string
*/
const string urlencode(const string &str) const;
static const string urlencode(const string &str);
/*!
* @brief Register application, step 1/2