Skip to content
Permalink
Browse files

Fix coverity uninitialized variable warnings

  • Loading branch information
nyalldawson committed Apr 3, 2016
1 parent 98d4734 commit 639c050077c1212798034c3edcedc169a28ec18b
Showing with 9 additions and 0 deletions.
  1. +2 −0 src/app/qgsfieldsproperties.h
  2. +1 −0 src/core/qgseditformconfig.h
  3. +6 −0 src/gui/qgsattributeform.h
@@ -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; }
@@ -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
@@ -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;

0 comments on commit 639c050

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