Skip to content
Permalink
Browse files

fix more cppcheck issues

  • Loading branch information
jef-n committed Feb 7, 2015
1 parent a40eca4 commit 0f9397028e50606a93e86b313980f481fd62305a
Showing with 360 additions and 845 deletions.
  1. +27 −15 src/plugins/dxf2shp_converter/dxflib/src/dl_entities.h
  2. +1 −1 src/plugins/globe/osgEarthUtil/Controls
  3. +2 −0 src/plugins/globe/osgEarthUtil/Controls.cpp
  4. +7 −0 src/plugins/grass/qgsgrassmapcalc.cpp
  5. +7 −0 src/providers/gdal/qgsgdalprovider.cpp
  6. +0 −7 tests/algorithms/projections/README
  7. +0 −27 tests/algorithms/projections/main.cpp
  8. +0 −307 tests/algorithms/projections/projectioncshandlingtest.h
  9. +0 −9 tests/algorithms/qgsproject/README
  10. +0 −43 tests/algorithms/qgsproject/main.cpp
  11. +0 −426 tests/algorithms/qgsproject/projecttest.h
  12. +3 −2 tests/qt_modeltest/dynamictreemodel.cpp
  13. +3 −4 tests/qt_modeltest/dynamictreemodel.h
  14. +8 −0 tests/src/analysis/testqgsvectoranalyzer.cpp
  15. +10 −0 tests/src/core/testqgsatlascomposition.cpp
  16. +10 −0 tests/src/core/testqgsblendmodes.cpp
  17. +9 −0 tests/src/core/testqgscomposerdd.cpp
  18. +8 −0 tests/src/core/testqgscomposereffects.cpp
  19. +9 −0 tests/src/core/testqgscomposergroup.cpp
  20. +8 −0 tests/src/core/testqgscomposerlabel.cpp
  21. +8 −0 tests/src/core/testqgscomposermap.cpp
  22. +8 −0 tests/src/core/testqgscomposermapoverview.cpp
  23. +8 −0 tests/src/core/testqgscomposermodel.cpp
  24. +10 −0 tests/src/core/testqgscomposerpaper.cpp
  25. +9 −0 tests/src/core/testqgscomposerrotation.cpp
  26. +9 −0 tests/src/core/testqgscomposerscalebar.cpp
  27. +9 −0 tests/src/core/testqgscomposershapes.cpp
  28. +10 −0 tests/src/core/testqgscomposertable.cpp
  29. +10 −0 tests/src/core/testqgscomposertablev2.cpp
  30. +9 −0 tests/src/core/testqgsdiagram.cpp
  31. +9 −0 tests/src/core/testqgsdiagramexpression.cpp
  32. +9 −0 tests/src/core/testqgsgradients.cpp
  33. +6 −0 tests/src/core/testqgslegendrenderer.cpp
  34. +6 −0 tests/src/core/testqgsmaplayer.cpp
  35. +5 −0 tests/src/core/testqgsmaplayerstylemanager.cpp
  36. +5 −2 tests/src/core/testqgsnetworkcontentfetcher.cpp
  37. +6 −0 tests/src/core/testqgspointlocator.cpp
  38. +9 −0 tests/src/core/testqgsrasterfill.cpp
  39. +8 −0 tests/src/core/testqgsrasterlayer.cpp
  40. +8 −0 tests/src/core/testqgsrenderers.cpp
  41. +8 −0 tests/src/core/testqgsshapeburst.cpp
  42. +5 −0 tests/src/core/testqgssnappingutils.cpp
  43. +6 −0 tests/src/core/testqgsvectordataprovider.cpp
  44. +9 −0 tests/src/core/testqgsvectorlayer.cpp
  45. +6 −0 tests/src/core/testqgsvectorlayercache.cpp
  46. +7 −0 tests/src/core/testqgsvectorlayerjoinbuffer.cpp
  47. +7 −0 tests/src/gui/testprojectionissues.cpp
  48. +7 −0 tests/src/gui/testqgsdualview.cpp
  49. +5 −0 tests/src/gui/testqgsmapcanvas.cpp
  50. +5 −0 tests/src/gui/testqgsmaptoolzoom.cpp
  51. +8 −0 tests/src/gui/testqgsquickprint.cpp
  52. +8 −1 tests/src/gui/testqgsrubberband.cpp
  53. +6 −1 tests/src/gui/testqgsscalecombobox.cpp
@@ -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.
You can’t perform that action at this time.