diff --git a/Source/Core/Common/Analytics.cpp b/Source/Core/Common/Analytics.cpp index 4441e9a7df..ed48d15188 100644 --- a/Source/Core/Common/Analytics.cpp +++ b/Source/Core/Common/Analytics.cpp @@ -198,7 +198,7 @@ void StdoutAnalyticsBackend::Send(std::string report) HexDump(reinterpret_cast(report.data()), report.size()).c_str()); } -HttpAnalyticsBackend::HttpAnalyticsBackend(const std::string& endpoint) : m_endpoint(endpoint) +HttpAnalyticsBackend::HttpAnalyticsBackend(std::string endpoint) : m_endpoint(std::move(endpoint)) { } diff --git a/Source/Core/Common/Analytics.h b/Source/Core/Common/Analytics.h index 45245ea42e..dc1ab8c599 100644 --- a/Source/Core/Common/Analytics.h +++ b/Source/Core/Common/Analytics.h @@ -184,7 +184,7 @@ public: class HttpAnalyticsBackend : public AnalyticsReportingBackend { public: - HttpAnalyticsBackend(const std::string& endpoint); + explicit HttpAnalyticsBackend(std::string endpoint); ~HttpAnalyticsBackend() override; void Send(std::string report) override;