Skip to content
Permalink
Browse files
fix more cppcheck issues
  • 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.
@@ -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;
}

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

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

/**
@@ -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;
@@ -132,6 +132,7 @@ _active( false ),
_absorbEvents( false ),
_hfill( false ),
_vfill( false )
_dirty( false )
{
//nop
}
@@ -1748,6 +1749,7 @@ ControlNode::PerViewData::PerViewData() :
_obscured ( true ),
_visibleTime( 0.0 ),
_screenPos ( 0.0, 0.0, 0.0 )
_visitFrame ( false )
{
//nop
}
@@ -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." );

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

This file was deleted.

This file was deleted.

0 comments on commit 0f93970

Please sign in to comment.