aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2017-06-25 11:29:45 +0200
committerJesus Fernandez <Jesus.Fernandez@qt.io>2017-06-26 08:15:59 +0000
commite3cf025bc041dab43f0432b15adb9f46b4ec8991 (patch)
tree01a693e64fdc1ff340c98eb83a2b9b9b380df057 /src
parent717618d0b05b751ab155c55a6c2b03c56cffc99b (diff)
Initialize pointer
*** CID 181282: Uninitialized members (UNINIT_CTOR) /qtdeclarative/src/imports/shapes/qquickshapegenericrenderer_p.h: 85 in QQuickShapeGenericRenderer::QQuickShapeGenericRenderer(QQuickItem *)() 79 QQuickShapeGenericRenderer(QQuickItem *item) 80 : m_item(item), 81 m_api(QSGRendererInterface::Unknown), 82 m_rootNode(nullptr), 83 m_accDirty(0), 84 m_asyncCallback(nullptr) >>> CID 181282: Uninitialized members (UNINIT_CTOR) >>> Non-static class member "m_asyncCallbackData" is not initialized in this constructor nor in any functions that it calls. 85 { } 86 ~QQuickShapeGenericRenderer(); 87 88 void beginSync(int totalCount) override; 89 void setPath(int index, const QQuickPath *path) override; 90 void setJSPath(int index, const QQuickShapePathCommands &path) override; Change-Id: Ifce4e20c8372b392900b77f45ae14d2abfa1657d Coverity-Id: 181282 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/imports/shapes/qquickshapegenericrenderer_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/shapes/qquickshapegenericrenderer_p.h b/src/imports/shapes/qquickshapegenericrenderer_p.h
index ba50f50309..430a95465b 100644
--- a/src/imports/shapes/qquickshapegenericrenderer_p.h
+++ b/src/imports/shapes/qquickshapegenericrenderer_p.h
@@ -81,7 +81,8 @@ public:
m_api(QSGRendererInterface::Unknown),
m_rootNode(nullptr),
m_accDirty(0),
- m_asyncCallback(nullptr)
+ m_asyncCallback(nullptr),
+ m_asyncCallbackData(nullptr)
{ }
~QQuickShapeGenericRenderer();