reserve space for bounds in QPainterPath::toFillPolygons()

upstream commit:
d432d17f83

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-02-05 23:21:22 +02:00
parent 363b2e01d7
commit 7a50d771fc

View file

@ -1595,6 +1595,7 @@ QList<QPolygonF> QPainterPath::toFillPolygons(const QTransform &matrix) const
return polys;
QList<QRectF> bounds;
bounds.reserve(count);
for (int i=0; i<count; ++i)
bounds += subpaths.at(i).boundingRect();