Skip to content
Permalink
Browse files

remaining cppcheck issues

  • Loading branch information
jef-n committed Feb 7, 2015
1 parent 2589b1a commit 6ed695aa73d0adbcc3bdcb0f176d93418be0e557
@@ -1801,18 +1801,19 @@ ControlNodeBin::draw( const ControlContext& context, bool newContext, int bin )

if ( _sortingEnabled && _sortByDistance )
{
for( ControlNodeCollection::iterator i = _controlNodes.begin(); i != _controlNodes.end(); ++i )
for( ControlNodeCollection::iterator i = _controlNodes.begin(); i != _controlNodes.end(); )
{
ControlNode* node = i->second.get();
if ( node->getNumParents() == 0 )
{
_renderNodes.erase( node );
_controlNodes.erase( i );
_controlNodes.erase( i++ );
}
else
{
ControlNode::PerViewData& nodeData = node->getData( context._view );
byDepth.insert( ControlNodePair(nodeData._screenPos.z(), node) );
++i;
}
}

@@ -44,6 +44,9 @@ class TestQgsAtlasComposition : public QObject
, mLabel2( 0 )
, mAtlasMap( 0 )
, mOverview( 0 )
, mVectorLayer( 0 )
, mVectorLayer2( 0 )
, mAtlas( 0 )
{}

private slots:
@@ -53,7 +53,8 @@ class TestQgsDiagram : public QObject

public:
TestQgsDiagram()
: mPointsLayer( 0 )
: mTestHasError( false )
, mPointsLayer( 0 )
, mComposition( 0 )
, mPieDiagram( 0 )
, mComposerMap( 0 )
@@ -52,7 +52,8 @@ class TestQgsDiagramExpression : public QObject
Q_OBJECT
public:
TestQgsDiagramExpression()
: mMapSettings( 0 )
: mTestHasError( false )
, mMapSettings( 0 )
, mPointsLayer( 0 )
, mComposition( 0 )
, mPieDiagram( 0 )
@@ -46,7 +46,8 @@ class TestQgsGradients : public QObject

public:
TestQgsGradients()
: mpPolysLayer( 0 )
: mTestHasError( false )
, mpPolysLayer( 0 )
, mGradientFill( 0 )
, mFillSymbol( 0 )
, mSymbolRenderer( 0 )
@@ -45,7 +45,8 @@ class TestQgsRasterFill : public QObject

public:
TestQgsRasterFill()
: mpPolysLayer( 0 )
: mTestHasError( false )
, mpPolysLayer( 0 )
, mRasterFill( 0 )
, mFillSymbol( 0 )
, mSymbolRenderer( 0 )
@@ -42,7 +42,8 @@ class TestQgsRenderers : public QObject

public:
TestQgsRenderers()
: mpPointsLayer( 0 )
: mTestHasError( false )
, mpPointsLayer( 0 )
, mpLinesLayer( 0 )
, mpPolysLayer( 0 )
{}
@@ -45,7 +45,8 @@ class TestQgsShapeburst : public QObject
Q_OBJECT
public:
TestQgsShapeburst()
: mpPolysLayer()
: mTestHasError( false )
, mpPolysLayer()
, mShapeburstFill( 0 )
, mFillSymbol( 0 )
, mSymbolRenderer( 0 )
@@ -72,7 +72,8 @@ class TestQgsVectorLayer : public QObject
Q_OBJECT
public:
TestQgsVectorLayer()
: mpMapRenderer( 0 )
: mTestHasError( false )
, mpMapRenderer( 0 )
, mpPointsLayer( 0 )
, mpLinesLayer( 0 )
, mpPolysLayer( 0 )
@@ -38,10 +38,12 @@
/** \ingroup UnitTests
* This is a unit test to verify that raster histogram works
*/
class TestRasterHistogram: public QObject
class TestRasterHistogram : public QObject
{
Q_OBJECT

TestRasterHistogram() {}

private:

QString mDataDir;

0 comments on commit 6ed695a

Please sign in to comment.
You can’t perform that action at this time.