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:
Lioncash 2018-10-10 20:59:25 -04:00
parent a34e5e51d8
commit 881bb2295d
2 changed files with 2 additions and 3 deletions

View file

@ -18,7 +18,7 @@ namespace WebService {
*/
class TelemetryJson : public Telemetry::VisitorInterface {
public:
TelemetryJson(const std::string& host, const std::string& username, const std::string& token);
TelemetryJson(std::string host, std::string username, std::string token);
~TelemetryJson();
void Visit(const Telemetry::Field<bool>& field) override;