diff --git a/alib2/src/alphabet/Symbol.cpp b/alib2/src/alphabet/Symbol.cpp index 1f6c50f741e07f2a9078a543df41758f837b9b2b..42eb5f2b6d9107ab7b71f60c0c73078229d225fb 100644 --- a/alib2/src/alphabet/Symbol.cpp +++ b/alib2/src/alphabet/Symbol.cpp @@ -21,7 +21,7 @@ Symbol::Symbol(const Symbol& other) : symbol(other.getSymbol().clone()) { } -Symbol::Symbol(Symbol&& other) noexcept : symbol(std::move(other.getSymbol()).plunder()) { +Symbol::Symbol(Symbol&& other) noexcept : symbol(other.symbol) { other.symbol = NULL; } diff --git a/alib2/src/label/Label.cpp b/alib2/src/label/Label.cpp index f0988de7d0cf945fe6928bb503cdeec1957aa234..c54a821e439f8ee363f31773d520a0e9a782c9a0 100644 --- a/alib2/src/label/Label.cpp +++ b/alib2/src/label/Label.cpp @@ -21,7 +21,7 @@ Label::Label(const Label& other) : label(other.getLabel().clone()) { } -Label::Label(Label&& other) noexcept : label(std::move(other.getLabel()).plunder()) { +Label::Label(Label&& other) noexcept : label(other.label) { other.label = NULL; }