Skip to content

Commit

Permalink
Fix uninitialized variables identified by coverity
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 3, 2015
1 parent b05e789 commit 5cacf59
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/core/qgsdiagramrendererv2.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,18 @@ class CORE_EXPORT QgsDiagramSettings
Right
};

QgsDiagramSettings(): sizeType( MM ), minScaleDenominator( -1 ), maxScaleDenominator( -1 )
QgsDiagramSettings()
: sizeType( MM )
, penWidth( 0.0 )
, labelPlacementMethod( QgsDiagramSettings::Height )
, diagramOrientation( QgsDiagramSettings::Up )
, barWidth( 5.0 )
, transparency( 0 )
, scaleByArea( true )
, angleOffset( 90 * 16 ) //top
, minScaleDenominator( -1 )
, maxScaleDenominator( -1 )
, minimumSize( 0.0 )
{}
QFont font;
QList< QColor > categoryColors;
Expand Down

0 comments on commit 5cacf59

Please sign in to comment.