Fix crash
Fix crash

Don't move into reference. Amends 936eee744d.

Change-Id: I7fa4e32f2d9f340f881cc746b74a752f81d34918
Reviewed-by: Ivan Komissarov <96f14e4d07227e958f51f7d2898113639e9498d9@gmail.com>
Reviewed-by: Joerg Bornemann <47777b9406dbddd02a3fdca8341789a013805a11@qt.io>

qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs