summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-28 21:07:34 -0400
committerLioncash <mathew1800@gmail.com>2019-05-28 21:07:38 -0400
commit05af9d915ced92e72e20e3a2d6db831ad5a9a8e6 (patch)
tree0d771433254e8a863750c3e39c72bcdec15ecb4d
parent2fb3b9b951d08da071841a6bb4e02439e7d78698 (diff)
core/telemetry_session: Explicitly delete copy and move constructors
NonCopyable is misleading here. It also makes the class non-moveable as well, so we can be explicit about this.
-rw-r--r--src/core/telemetry_session.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/telemetry_session.h b/src/core/telemetry_session.h
index 8229d1333..7d0c8d413 100644
--- a/src/core/telemetry_session.h
+++ b/src/core/telemetry_session.h
@@ -14,11 +14,17 @@ namespace Core {
* session, logging any one-time fields. Interfaces with the telemetry backend used for submitting
* data to the web service. Submits session data on close.
*/
-class TelemetrySession : NonCopyable {
+class TelemetrySession {
public:
TelemetrySession();
~TelemetrySession();
+ TelemetrySession(const TelemetrySession&) = delete;
+ TelemetrySession& operator=(const TelemetrySession&) = delete;
+
+ TelemetrySession(TelemetrySession&&) = delete;
+ TelemetrySession& operator=(TelemetrySession&&) = delete;
+
/**
* Wrapper around the Telemetry::FieldCollection::AddField method.
* @param type Type of the field to add.