mirror of
https://git.suyu.dev/suyu/suyu
synced 2025-08-26 14:06:31 -05:00
telemetry_json: Take std::string parameters by value
Taking them by const reference isn't advisable here, because it means the std::move calls were doing nothing and we were always copying the std::string instances.
This commit is contained in:
@@ -8,8 +8,7 @@
|
||||
|
||||
namespace WebService {
|
||||
|
||||
TelemetryJson::TelemetryJson(const std::string& host, const std::string& username,
|
||||
const std::string& token)
|
||||
TelemetryJson::TelemetryJson(std::string host, std::string username, std::string token)
|
||||
: host(std::move(host)), username(std::move(username)), token(std::move(token)) {}
|
||||
TelemetryJson::~TelemetryJson() = default;
|
||||
|
||||
|
Reference in New Issue
Block a user