Fix move constructor to properly set old data NULL
Use std::move in move constructor
Pass _cmd by reference

Suggested by:	cppcheck
Cppcheck fixes