Skip to content
Snippets Groups Projects
Verified Commit d535de96 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

FIX entity move constructor

parent 00e64d74
Branches
Tags
1 merge request!27F move entity
Pipeline #14018 passed
Pipeline: caosdb-cppinttest

#14020

    ...@@ -677,9 +677,7 @@ public: ...@@ -677,9 +677,7 @@ public:
    /** /**
    * Move constructor. * Move constructor.
    */ */
    explicit inline Entity(Entity &&original) explicit inline Entity(Entity &&original) : Entity(std::move(original.wrapped)) {
    : wrapped(std::move(original.wrapped)), value(Value(std::move(original.value.wrapped))),
    data_type(DataType(std::move(original.data_type.wrapped))) {
    this->properties.wrapped = std::move(original.properties.wrapped); this->properties.wrapped = std::move(original.properties.wrapped);
    this->parents.wrapped = std::move(original.parents.wrapped); this->parents.wrapped = std::move(original.parents.wrapped);
    this->errors.wrapped = std::move(original.errors.wrapped); this->errors.wrapped = std::move(original.errors.wrapped);
    ...@@ -692,14 +690,14 @@ public: ...@@ -692,14 +690,14 @@ public:
    */ */
    auto operator=(Entity &&other) -> Entity & { auto operator=(Entity &&other) -> Entity & {
    this->wrapped = std::move(other.wrapped); this->wrapped = std::move(other.wrapped);
    this->data_type.wrapped = std::move(other.data_type.wrapped); this->data_type = std::move(other.data_type);
    this->value.wrapped = std::move(other.value.wrapped); this->value = std::move(other.value);
    this->properties.wrapped = std::move(other.properties.wrapped); this->properties = std::move(other.properties);
    this->parents.wrapped = std::move(other.parents.wrapped); this->parents = std::move(other.parents);
    this->file_descriptor = std::move(other.file_descriptor); this->file_descriptor = std::move(other.file_descriptor);
    this->errors.wrapped = std::move(other.errors.wrapped); this->errors = std::move(other.errors);
    this->warnings.wrapped = std::move(other.warnings.wrapped); this->warnings = std::move(other.warnings);
    this->infos.wrapped = std::move(other.infos.wrapped); this->infos = std::move(other.infos);
    return *this; return *this;
    } }
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment