Skip to content
Permalink
Browse files

initialize pointers to nullprt

  • Loading branch information
PeterPetrik committed Jul 4, 2018
1 parent 0bf920b commit be9033982eccf5be6c03951f2c4867ee66a7a49c
@@ -116,7 +116,7 @@ class QUICK_EXPORT QgsQuickAttributeFormModel : public QSortFilterProxyModel
virtual bool filterAcceptsRow( int source_row, const QModelIndex &source_parent ) const override;

private:
QgsQuickAttributeFormModelBase *mSourceModel; //not owned
QgsQuickAttributeFormModelBase *mSourceModel = nullptr; //not owned
};

#endif // QGSQUICKATTRIBUTEFORMMODEL_H
@@ -119,7 +119,7 @@ void QgsQuickAttributeFormModelBase::onLayerChanged()

if ( mLayer )
{
QgsAttributeEditorContainer *root;
QgsAttributeEditorContainer *root = nullptr;
mTemporaryContainer = nullptr;

if ( mLayer->editFormConfig().layout() == QgsEditFormConfig::TabLayout )

0 comments on commit be90339

Please sign in to comment.
You can’t perform that action at this time.