diff --git a/alib2algo/src/automaton/run/Run.h b/alib2algo/src/automaton/run/Run.h index 95033e551f33fa9b13c968a981cbc0500ca47b9e..f4925df0ab7479807c52b3e3879ce6a46bb90b3b 100644 --- a/alib2algo/src/automaton/run/Run.h +++ b/alib2algo/src/automaton/run/Run.h @@ -41,12 +41,12 @@ class Run { template < class SymbolType > struct graphStructuredStack { struct Element { - Element ( std::shared_ptr < Element > parent, SymbolType data ) : m_parent(parent), m_data(data) {} + Element ( std::shared_ptr < Element > parent, SymbolType data ) : m_parent ( std::move ( parent) ), m_data ( std::move ( data ) ) {} std::shared_ptr < Element > m_parent; SymbolType m_data; }; - graphStructuredStack ( std::shared_ptr < Element > value ) : m_value ( value ) {} + graphStructuredStack ( std::shared_ptr < Element > value ) : m_value ( std::move ( value ) ) { } std::shared_ptr < Element > m_value;