summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Analytics.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-06-03 18:33:02 -0400
committerLioncash <mathew1800@gmail.com>2019-06-03 20:13:00 -0400
commit58e2cd54866572b48e422733b3112c58f7cce3a7 (patch)
tree415e0110fbb7ef6483aab98fe16eb232b341fa12 /Source/Core/Common/Analytics.cpp
parentf813c4951a4e150b1f431085efdacf364b217dda (diff)
Common/Analytics: std::move std::string constructor parameter
Allows calling code to move into the constructor, avoiding the creation of another string copy.
Diffstat (limited to 'Source/Core/Common/Analytics.cpp')
-rw-r--r--Source/Core/Common/Analytics.cpp2
1 files changed, 1 insertions, 1 deletions
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<const u8*>(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))
{
}