mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 16:55:46 +00:00
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.
This commit is contained in:
parent
2df4be6f25
commit
4fee2216fc
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue