diff --git a/src/connection.cpp b/src/connection.cpp index 9bc43f0..fad710a 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -33,8 +33,8 @@ answer_type Connection::get(const endpoint_variant &endpoint, { if (holds_alternative(endpoint)) { - return string(_baseuri).append( - API{std::get(endpoint)}.to_string_view()); + return string(_baseuri) + += API{std::get(endpoint)}.to_string_view(); } return string(std::get(endpoint)); }()}; diff --git a/src/exceptions.cpp b/src/exceptions.cpp index 7c3da1a..7dd0e0f 100644 --- a/src/exceptions.cpp +++ b/src/exceptions.cpp @@ -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(); }