Fix erasing elements in the vector
Fix erasing elements in the vector

end() should be re-calculated after erase()

This amends e5f115d25

Change-Id: I6ce59cf8d475f561390ccab0ee41dbf67aeeafe5
Reviewed-by: Christian Kandeler <3aa99dcdd3f0cac61fb81c2a11771c0cc2497607@qt.io>

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