Replace append with +=.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4b118e75f1
commit
6b5936a4b6
|
@ -33,8 +33,8 @@ answer_type Connection::get(const endpoint_variant &endpoint,
|
||||||
{
|
{
|
||||||
if (holds_alternative<API::endpoint_type>(endpoint))
|
if (holds_alternative<API::endpoint_type>(endpoint))
|
||||||
{
|
{
|
||||||
return string(_baseuri).append(
|
return string(_baseuri)
|
||||||
API{std::get<API::endpoint_type>(endpoint)}.to_string_view());
|
+= API{std::get<API::endpoint_type>(endpoint)}.to_string_view();
|
||||||
}
|
}
|
||||||
return string(std::get<string_view>(endpoint));
|
return string(std::get<string_view>(endpoint));
|
||||||
}()};
|
}()};
|
||||||
|
|
|
@ -42,7 +42,7 @@ const char *CURLException::what() const noexcept
|
||||||
+ " - " + _message};
|
+ " - " + _message};
|
||||||
if (!_error_buffer.empty())
|
if (!_error_buffer.empty())
|
||||||
{
|
{
|
||||||
error_string.append(" [" + _error_buffer + "]");
|
error_string += " [" + _error_buffer + "]";
|
||||||
}
|
}
|
||||||
return error_string.c_str();
|
return error_string.c_str();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user