Fix coverity uninitialized variable warnings

This commit is contained in:
Nyall Dawson 2016-04-04 06:52:49 +10:00
parent 98d4734098
commit 639c050077
3 changed files with 9 additions and 0 deletions

View File

@ -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; }

View File

@ -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

View File

@ -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;