Skip to content

Commit

Permalink
fix more cppcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 7, 2015
1 parent a40eca4 commit 0f93970
Show file tree
Hide file tree
Showing 53 changed files with 360 additions and 845 deletions.
42 changes: 27 additions & 15 deletions src/plugins/dxf2shp_converter/dxflib/src/dl_entities.h
Original file line number Diff line number Diff line change
Expand Up @@ -1248,8 +1248,16 @@ struct DL_HatchEdgeData
* Default constructor.
*/
DL_HatchEdgeData()
: type( 1 )
, defined( false )
, x1( 0. ), y1( 0. )
, x2( 0. ), y2( 0. )
, cx( 0. ), cy( 0. )
, radius( 0. )
, angle1( 0. )
, angle2( 0. )
, ccw( false )
{
defined = false;
}

/**
Expand All @@ -1258,13 +1266,16 @@ struct DL_HatchEdgeData
*/
DL_HatchEdgeData( double lx1, double ly1,
double lx2, double ly2 )
: type( 1 )
, defined( true )
, x1( lx1 ), y1( ly1 )
, x2( lx2 ), y2( ly2 )
, cx( 0. ), cy( 0. )
, radius( 0. )
, angle1( 0. )
, angle2( 0. )
, ccw( false )
{
x1 = lx1;
y1 = ly1;
x2 = lx2;
y2 = ly2;
type = 1;
defined = true;
}

/**
Expand All @@ -1275,15 +1286,16 @@ struct DL_HatchEdgeData
double aRadius,
double aAngle1, double aAngle2,
bool aCcw )
: type( 2 )
, defined( true )
, x1( 0. ), y1( 0. )
, x2( 0. ), y2( 0. )
, cx( acx ), cy( acy )
, radius( aRadius )
, angle1( aAngle1 )
, angle2( aAngle2 )
, ccw( aCcw )
{
cx = acx;
cy = acy;
radius = aRadius;
angle1 = aAngle1;
angle2 = aAngle2;
ccw = aCcw;
type = 2;
defined = true;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/globe/osgEarthUtil/Controls
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace osgEarth { namespace Util { namespace Controls21
// internal state class
struct ControlContext
{
ControlContext() : _viewContextID(~0) { }
ControlContext() : _viewContextID(~0), _view(0), _frameStamp(0) { }
osg::View* _view;
osg::ref_ptr<const osg::Viewport> _vp;
unsigned int _viewContextID;
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/globe/osgEarthUtil/Controls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ _active( false ),
_absorbEvents( false ),
_hfill( false ),
_vfill( false )
_dirty( false )
{
//nop
}
Expand Down Expand Up @@ -1748,6 +1749,7 @@ ControlNode::PerViewData::PerViewData() :
_obscured ( true ),
_visibleTime( 0.0 ),
_screenPos ( 0.0, 0.0, 0.0 )
_visitFrame ( false )
{
//nop
}
Expand Down
7 changes: 7 additions & 0 deletions src/plugins/grass/qgsgrassmapcalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1495,9 +1495,16 @@ QgsGrassMapcalcObject::QgsGrassMapcalcObject( int type )
: QGraphicsRectItem( -1000, -1000, 50, 20, 0 )
, QgsGrassMapcalcItem()
, mType( type )
, mRound( 0. )
, mCenter( -1000, -1000 )
, mSocketHalf( 0. )
, mMargin( 0. )
, mSpace( 0. )
, mTextHeight( 0 )
, mInputTextWidth( 0 )
, mSelectionBoxSize( 5 )
, mOutputConnector( 0 )
, mOutputConnectorEnd( 0 )
{
QgsDebugMsg( "entered." );

Expand Down
7 changes: 7 additions & 0 deletions src/providers/gdal/qgsgdalprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,14 @@ int CPL_STDCALL progressCallback( double dfComplete,

QgsGdalProvider::QgsGdalProvider( const QString &uri, QgsError error )
: QgsRasterDataProvider( uri )
, mUpdate( false )
, mValid( false )
, mHasPyramids( false )
, mWidth( 0 )
, mHeight( 0 )
, mXBlockSize( 0 )
, mYBlockSize( 0 )
, mGeoTransform()
, mGdalBaseDataset( 0 )
, mGdalDataset( 0 )
{
Expand Down
7 changes: 0 additions & 7 deletions tests/algorithms/projections/README

This file was deleted.

27 changes: 0 additions & 27 deletions tests/algorithms/projections/main.cpp

This file was deleted.

Loading

0 comments on commit 0f93970

Please sign in to comment.