Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix coverity uninitialized variable warnings
  • Loading branch information
nyalldawson committed Apr 3, 2016
1 parent 98d4734 commit 639c050
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsfieldsproperties.h
Expand Up @@ -54,11 +54,13 @@ class APP_EXPORT QgsFieldsProperties : public QWidget, private Ui_QgsFieldsPrope

DesignerTreeItemData()
: mType( Field )
, mColumnCount( 1 )
{}

DesignerTreeItemData( Type type, const QString& name )
: mType( type )
, mName( name )
, mColumnCount( 1 )
{}

QString name() const { return mName; }
Expand Down
1 change: 1 addition & 0 deletions src/core/qgseditformconfig.h
Expand Up @@ -105,6 +105,7 @@ class CORE_EXPORT QgsAttributeEditorContainer : public QgsAttributeEditorElement
QgsAttributeEditorContainer( const QString& name, QObject *parent )
: QgsAttributeEditorElement( AeTypeContainer, name, parent )
, mIsGroupBox( true )
, mColumnCount( 1 )
{}

//! Destructor
Expand Down
6 changes: 6 additions & 0 deletions src/gui/qgsattributeform.h
Expand Up @@ -187,6 +187,12 @@ class GUI_EXPORT QgsAttributeForm : public QWidget

struct WidgetInfo
{
WidgetInfo()
: widget( nullptr )
, labelOnTop( false )
, labelAlignRight( false )
{}

QWidget* widget;
QString labelText;
bool labelOnTop;
Expand Down

0 comments on commit 639c050

Please sign in to comment.