diff --git a/src/plugins/qmldesigner/components/formeditor/selectionindicator.cpp b/src/plugins/qmldesigner/components/formeditor/selectionindicator.cpp index fd8ff4cd560..7253d3b6153 100644 --- a/src/plugins/qmldesigner/components/formeditor/selectionindicator.cpp +++ b/src/plugins/qmldesigner/components/formeditor/selectionindicator.cpp @@ -44,7 +44,6 @@ namespace QmlDesigner { SelectionIndicator::SelectionIndicator(LayerItem *layerItem) : m_layerItem(layerItem) - , m_annotationItem(nullptr) { } diff --git a/src/plugins/qmldesigner/components/formeditor/selectionindicator.h b/src/plugins/qmldesigner/components/formeditor/selectionindicator.h index 252020e9904..344f8c3a1de 100644 --- a/src/plugins/qmldesigner/components/formeditor/selectionindicator.h +++ b/src/plugins/qmldesigner/components/formeditor/selectionindicator.h @@ -57,11 +57,11 @@ private: private: QHash m_indicatorShapeHash; - FormEditorItem *m_selectedItem; + FormEditorItem *m_selectedItem = nullptr; QPointer m_layerItem; QCursor m_cursor; std::unique_ptr m_labelItem; - FormEditorAnnotationIcon *m_annotationItem; //handled by m_labelItem + FormEditorAnnotationIcon *m_annotationItem = nullptr; //handled by m_labelItem }; } // namespace QmlDesigner