From 419533eba413f136a46cf76e873bac01e7f3c881 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 16 Aug 2014 13:04:23 +0200 Subject: [PATCH] QPicture: don't hold images in QList QImage is larger than a void*, so holding them in a QList is needlessly inefficient. Worse, the code could come to depend on the fragile property of (inefficient) QLists that references to elements therein never are invalidated. Change-Id: I153995d691692f7317cab31b95a00d679f31c0af Reviewed-by: Konstantin Ritt Reviewed-by: Gunnar Sletta --- src/gui/image/qpicture_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/image/qpicture_p.h b/src/gui/image/qpicture_p.h index d8623f0fed..a414a122f1 100644 --- a/src/gui/image/qpicture_p.h +++ b/src/gui/image/qpicture_p.h @@ -151,7 +151,7 @@ public: QRect override_rect; QScopedPointer paintEngine; bool in_memory_only; - QList image_list; + QVector image_list; QVector pixmap_list; QList brush_list; QList pen_list;