aboutsummaryrefslogtreecommitdiff
path: root/src/common/telemetry.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-18 00:32:32 -0400
committerLioncash <mathew1800@gmail.com>2018-07-18 00:32:35 -0400
commitc65a8fafa0fe68371b8b07ba190df78744983327 (patch)
treedb7b94c6a46972761ec012e9d78383175258c40a /src/common/telemetry.h
parent0aebe6b3d52403e042522720cb5646ddbcb306d6 (diff)
telemetry: Remove unnecessary Field constructor
We can just take the value parameter by value which allows both moving into it, and copies at the same time, depending on the calling code.
Diffstat (limited to 'src/common/telemetry.h')
-rw-r--r--src/common/telemetry.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/common/telemetry.h b/src/common/telemetry.h
index 155cf59ff..3bab75b59 100644
--- a/src/common/telemetry.h
+++ b/src/common/telemetry.h
@@ -52,10 +52,7 @@ public:
template <typename T>
class Field : public FieldInterface {
public:
- Field(FieldType type, std::string name, const T& value)
- : name(std::move(name)), type(type), value(value) {}
-
- Field(FieldType type, std::string name, T&& value)
+ Field(FieldType type, std::string name, T value)
: name(std::move(name)), type(type), value(std::move(value)) {}
Field(const Field&) = default;