Skip to content

Commit

Permalink
initialize pointers to nullprt
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Jul 4, 2018
1 parent 0bf920b commit be90339
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/quickgui/attributes/qgsquickattributeformmodel.h
Expand Up @@ -116,7 +116,7 @@ class QUICK_EXPORT QgsQuickAttributeFormModel : public QSortFilterProxyModel
virtual bool filterAcceptsRow( int source_row, const QModelIndex &source_parent ) const override; virtual bool filterAcceptsRow( int source_row, const QModelIndex &source_parent ) const override;


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


#endif // QGSQUICKATTRIBUTEFORMMODEL_H #endif // QGSQUICKATTRIBUTEFORMMODEL_H
2 changes: 1 addition & 1 deletion src/quickgui/attributes/qgsquickattributeformmodelbase.cpp
Expand Up @@ -119,7 +119,7 @@ void QgsQuickAttributeFormModelBase::onLayerChanged()


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


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

0 comments on commit be90339

Please sign in to comment.