summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2017-06-25 11:16:17 +0200
committerJesus Fernandez <Jesus.Fernandez@qt.io>2017-06-26 08:17:36 +0000
commit31611f32bb89564dc6933d47eeb4ca4e45ac5563 (patch)
treed1989de108d4187d28022b6ee4d3589614250010
parent1fa071b2b70ee6314fa12312da2d930f3983a7cc (diff)
Initialize uniform location variables
*** CID 181276: Uninitialized members (UNINIT_CTOR) /qtdeclarative/src/imports/shapes/qquickshapenvprrenderer_p.h: 174 in QQuickNvprBlitter::QQuickNvprBlitter()() 168 float opacity); 169 170 private: 171 QOpenGLShaderProgram *m_program = nullptr; 172 QOpenGLBuffer *m_buffer = nullptr; 173 int m_matrixLoc; >>> CID 181276: Uninitialized members (UNINIT_CTOR) >>> The compiler-generated constructor for this class does not initialize "m_opacityLoc". 174 int m_opacityLoc; 175 QSize m_prevSize; 176 }; 177 178 class QQuickShapeNvprRenderNode : public QSGRenderNode 179 { Change-Id: I4176981fe79c175db974ff428a5116d82420f7a6 Coverity-Id: 181276 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
-rw-r--r--src/imports/shapes/qquickshapenvprrenderer_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/shapes/qquickshapenvprrenderer_p.h b/src/imports/shapes/qquickshapenvprrenderer_p.h
index d90357a40d..159bf79493 100644
--- a/src/imports/shapes/qquickshapenvprrenderer_p.h
+++ b/src/imports/shapes/qquickshapenvprrenderer_p.h
@@ -170,8 +170,8 @@ public:
private:
QOpenGLShaderProgram *m_program = nullptr;
QOpenGLBuffer *m_buffer = nullptr;
- int m_matrixLoc;
- int m_opacityLoc;
+ int m_matrixLoc = -1;
+ int m_opacityLoc = -1;
QSize m_prevSize;
};