Use QVector::reserve where size is known in advance

Authored by kossebau on Dec 5 2017, 11:05 PM.