diff --git a/src/gui/painting/qpainterpath.cpp b/src/gui/painting/qpainterpath.cpp index aa2b9bea54..7a29bb87b4 100644 --- a/src/gui/painting/qpainterpath.cpp +++ b/src/gui/painting/qpainterpath.cpp @@ -1644,7 +1644,8 @@ QList QPainterPath::toFillPolygons(const QTransform &matrix) const if (count == 0) return polys; - QList bounds; + QVector bounds; + bounds.reserve(count); for (int i=0; i