summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2017-06-25 11:27:21 +0200
committerJesus Fernandez <Jesus.Fernandez@qt.io>2017-06-26 08:16:57 +0000
commit47b59f9001ea6c185e44f243a1fb697b1859215b (patch)
tree8d2196f3e5ec8ab4b04012388eb2fc117da02f80
parente3cf025bc041dab43f0432b15adb9f46b4ec8991 (diff)
Initialize pointer
*** CID 181281: Uninitialized members (UNINIT_CTOR) /qtdeclarative/src/imports/shapes/qquickshapenvprrenderer_p.h: 156 in QQuickNvprMaterialManager::QQuickNvprMaterialManager()() 150 151 void create(QQuickNvprFunctions *nvpr); 152 MaterialDesc *activateMaterial(Material m); 153 void releaseResources(); 154 155 private: >>> CID 181281: Uninitialized members (UNINIT_CTOR) >>> The compiler-generated constructor for this class does not initialize "m_nvpr". 156 QQuickNvprFunctions *m_nvpr; 157 MaterialDesc m_materials[NMaterials]; 158 }; 159 160 class QQuickNvprBlitter 161 { Change-Id: Ia502683b55022ac3eafd4ebd015d44273185bdfc Coverity-Id: 181281 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
-rw-r--r--src/imports/shapes/qquickshapenvprrenderer_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/shapes/qquickshapenvprrenderer_p.h b/src/imports/shapes/qquickshapenvprrenderer_p.h
index 33007313d4..d90357a40d 100644
--- a/src/imports/shapes/qquickshapenvprrenderer_p.h
+++ b/src/imports/shapes/qquickshapenvprrenderer_p.h
@@ -153,7 +153,7 @@ public:
void releaseResources();
private:
- QQuickNvprFunctions *m_nvpr;
+ QQuickNvprFunctions *m_nvpr = nullptr;
MaterialDesc m_materials[NMaterials];
};