From d432d17f83e5edf4fb14e13cd74d57643df3a13a Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 5 Oct 2013 00:40:21 +0200 Subject: [PATCH] QPainterPath: replace a use of QList with a QVector QList is horribly inefficent, and this is just implementation, so we're free to change it. Change-Id: I7b28a2093efb5826b55c172f48a81cb9c2472e5a Reviewed-by: Gunnar Sletta Reviewed-by: Thiago Macieira --- src/gui/painting/qpainterpath.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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