Make some private members of CURLWrapper static.
All checks were successful
continuous-integration/drone/push Build is passing

replace_parameter_in_uri(), add_parameters_to_uri() and add_mime_part().
This commit is contained in:
tastytea 2020-01-26 08:50:05 +01:00
parent 3876cf3f01
commit deeff83410
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 7 additions and 5 deletions

View File

@ -320,7 +320,8 @@ private:
*
* @since 0.1.0
*/
bool replace_parameter_in_uri(string &uri, const parameterpair &parameter);
static bool replace_parameter_in_uri(string &uri,
const parameterpair &parameter);
/*!
* @brief Add parameters to URI.
@ -330,7 +331,8 @@ private:
*
* @since 0.1.0
*/
void add_parameters_to_uri(string &uri, const parametermap &parameters);
static void add_parameters_to_uri(string &uri,
const parametermap &parameters);
/*!
* @brief Add `*curl_mimepart` to `*curl_mime`.
@ -341,8 +343,8 @@ private:
*
* @since 0.2.0
*/
void add_mime_part(curl_mime *mime,
string_view name, string_view data) const;
static void add_mime_part(curl_mime *mime,
string_view name, string_view data);
/*!
* @brief Convert parametermap to `*curl_mime`.

View File

@ -415,7 +415,7 @@ void CURLWrapper::add_parameters_to_uri(string &uri,
}
void CURLWrapper::add_mime_part(curl_mime *mime,
string_view name, string_view data) const
string_view name, string_view data)
{
curl_mimepart *part{curl_mime_addpart(mime)};
if (part == nullptr)