common/core: Silence initialization order warnings

This commit is contained in:
Lioncash 2017-12-10 19:50:45 -05:00
parent 9699194b54
commit c31f932afe
5 changed files with 7 additions and 7 deletions

View file

@ -53,10 +53,10 @@ template <typename T>
class Field : public FieldInterface {
public:
Field(FieldType type, std::string name, const T& value)
: type(type), name(std::move(name)), value(value) {}
: name(std::move(name)), type(type), value(value) {}
Field(FieldType type, std::string name, T&& value)
: type(type), name(std::move(name)), value(std::move(value)) {}
: name(std::move(name)), type(type), value(std::move(value)) {}
Field(const Field& other) : Field(other.type, other.name, other.value) {}