diff options
| author | 2018-10-10 20:59:25 -0400 | |
|---|---|---|
| committer | 2018-10-10 20:59:28 -0400 | |
| commit | 881bb2295d40c50a401cd05fff8eeb822ec577e9 (patch) | |
| tree | 87f5ed2f86168d9c8a181323f60e9d4f104bfca8 /src/web_service/telemetry_json.h | |
| parent | telemetry_json: Remove unnecessary includes (diff) | |
| download | yuzu-881bb2295d40c50a401cd05fff8eeb822ec577e9.tar.gz yuzu-881bb2295d40c50a401cd05fff8eeb822ec577e9.tar.xz yuzu-881bb2295d40c50a401cd05fff8eeb822ec577e9.zip | |
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.
Diffstat (limited to '')
| -rw-r--r-- | src/web_service/telemetry_json.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web_service/telemetry_json.h b/src/web_service/telemetry_json.h index 72627a416..92ead9856 100644 --- a/src/web_service/telemetry_json.h +++ b/src/web_service/telemetry_json.h | |||
| @@ -18,7 +18,7 @@ namespace WebService { | |||
| 18 | */ | 18 | */ |
| 19 | class TelemetryJson : public Telemetry::VisitorInterface { | 19 | class TelemetryJson : public Telemetry::VisitorInterface { |
| 20 | public: | 20 | public: |
| 21 | TelemetryJson(const std::string& host, const std::string& username, const std::string& token); | 21 | TelemetryJson(std::string host, std::string username, std::string token); |
| 22 | ~TelemetryJson(); | 22 | ~TelemetryJson(); |
| 23 | 23 | ||
| 24 | void Visit(const Telemetry::Field<bool>& field) override; | 24 | void Visit(const Telemetry::Field<bool>& field) override; |