summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2012-10-23 17:25:48 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-24 01:38:39 +0200
commitd1ad991bee52e17452cae9dca55b3b340c6f0955 (patch)
treef43671b8f5b07372745b81eb4729a8a5f5ac7182 /src/gui
parent4835a87fe3a4107a7d7a05b371d8a2a4b3b255de (diff)
Fix valgrind warning in QTriangulatingStroker.
Initialize all member variables including m_invScale, which was uninitialized. Change-Id: Id581b1db9411b2f945281e17b7a0407c746761f8 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/opengl/qtriangulatingstroker_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/opengl/qtriangulatingstroker_p.h b/src/gui/opengl/qtriangulatingstroker_p.h
index ba21c0820f..98b12b0fb3 100644
--- a/src/gui/opengl/qtriangulatingstroker_p.h
+++ b/src/gui/opengl/qtriangulatingstroker_p.h
@@ -54,7 +54,10 @@ QT_BEGIN_NAMESPACE
class Q_GUI_EXPORT QTriangulatingStroker
{
public:
- QTriangulatingStroker() : m_vertices(0) {}
+ QTriangulatingStroker() : m_vertices(0), m_cx(0), m_cy(0), m_nvx(0), m_nvy(0), m_width(1), m_miter_limit(2),
+ m_roundness(0), m_sin_theta(0), m_cos_theta(0), m_inv_scale(1), m_curvyness_mul(1), m_curvyness_add(0),
+ m_join_style(Qt::BevelJoin), m_cap_style(Qt::SquareCap) {}
+
void process(const QVectorPath &path, const QPen &pen, const QRectF &clip, QPainter::RenderHints hints);
inline int vertexCount() const { return m_vertices.size(); }