Make some private members of CURLWrapper static.
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
3876cf3f01
commit
deeff83410
|
@ -320,7 +320,8 @@ private:
|
|||
*
|
||||
* @since 0.1.0
|
||||
*/
|
||||
bool replace_parameter_in_uri(string &uri, const parameterpair ¶meter);
|
||||
static bool replace_parameter_in_uri(string &uri,
|
||||
const parameterpair ¶meter);
|
||||
|
||||
/*!
|
||||
* @brief Add parameters to URI.
|
||||
|
@ -330,7 +331,8 @@ private:
|
|||
*
|
||||
* @since 0.1.0
|
||||
*/
|
||||
void add_parameters_to_uri(string &uri, const parametermap ¶meters);
|
||||
static void add_parameters_to_uri(string &uri,
|
||||
const parametermap ¶meters);
|
||||
|
||||
/*!
|
||||
* @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`.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user