Replace append with +=.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2020-01-08 17:39:47 +01:00
parent 4b118e75f1
commit 6b5936a4b6
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 3 additions and 3 deletions

View File

@ -33,8 +33,8 @@ answer_type Connection::get(const endpoint_variant &endpoint,
{
if (holds_alternative<API::endpoint_type>(endpoint))
{
return string(_baseuri).append(
API{std::get<API::endpoint_type>(endpoint)}.to_string_view());
return string(_baseuri)
+= API{std::get<API::endpoint_type>(endpoint)}.to_string_view();
}
return string(std::get<string_view>(endpoint));
}()};

View File

@ -42,7 +42,7 @@ const char *CURLException::what() const noexcept
+ " - " + _message};
if (!_error_buffer.empty())
{
error_string.append(" [" + _error_buffer + "]");
error_string += " [" + _error_buffer + "]";
}
return error_string.c_str();
}