summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qstroker.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-05-07 06:15:37 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-05-07 06:15:37 (GMT)
commit4976130171033abdd8323a19229dcbfc5b008cfe (patch)
tree06fb286c8831e943941a9dabf081fe704fcfda88 /src/gui/painting/qstroker.cpp
parent65d04843759d14f15f559c78df94626568bc0cb8 (diff)
downloadQt-4976130171033abdd8323a19229dcbfc5b008cfe.zip
Qt-4976130171033abdd8323a19229dcbfc5b008cfe.tar.gz
Qt-4976130171033abdd8323a19229dcbfc5b008cfe.tar.bz2
Avoid many unnecessary allocations, so so that paint engines attached to pixmaps
do not consume excessive amounts of memory, and so can still be reasonably kept cached with the pixmap. Saves 8K for every pixmaps drawn to on raster paint engine. Saves about 2K for other graphicssystems. Task-number: QTBUG-10215 Reviewed-by: Gunnar
Diffstat (limited to 'src/gui/painting/qstroker.cpp')
-rw-r--r--src/gui/painting/qstroker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qstroker.cpp b/src/gui/painting/qstroker.cpp
index e43544c..9b8e099 100644
--- a/src/gui/painting/qstroker.cpp
+++ b/src/gui/painting/qstroker.cpp
@@ -187,7 +187,7 @@ static inline qreal adapted_angle_on_x(const QLineF &line)
}
QStrokerOps::QStrokerOps()
- : m_customData(0), m_moveTo(0), m_lineTo(0), m_cubicTo(0)
+ : m_elements(0), m_customData(0), m_moveTo(0), m_lineTo(0), m_cubicTo(0)
{
}