Skip to content
Permalink
Browse files

Minor coverity fixes

  • Loading branch information
nyalldawson committed Nov 22, 2015
1 parent 73ac9f9 commit 88beaaea0f209808a4fd6cd99dd63f8703f79618
@@ -49,6 +49,7 @@ class ANALYSIS_EXPORT LinTriangleInterpolator : public TriangleInterpolator
};

inline LinTriangleInterpolator::LinTriangleInterpolator()
: mTIN( 0 )
{

}
@@ -58,12 +58,12 @@ class ANALYSIS_EXPORT ParametricLine

//-----------------------------------------constructors and destructor----------------------

inline ParametricLine::ParametricLine() : mParent( 0 ), mControlPoly( 0 )
inline ParametricLine::ParametricLine() : mDegree( 0 ), mParent( 0 ), mControlPoly( 0 )
{

}

inline ParametricLine::ParametricLine( ParametricLine* par, QVector<Point3D*>* controlpoly ) : mParent( par ), mControlPoly( controlpoly )
inline ParametricLine::ParametricLine( ParametricLine* par, QVector<Point3D*>* controlpoly ) : mDegree( 0 ), mParent( par ), mControlPoly( controlpoly )
{

}
@@ -874,9 +874,9 @@ QRectF QgsMarkerSymbolV2::bounds( const QPointF& point, QgsRenderContext& contex
for ( QgsSymbolLayerV2List::const_iterator it = mLayers.constBegin(); it != mLayers.constEnd(); ++it )
{
if ( bound.isNull() )
bound = dynamic_cast< QgsMarkerSymbolLayerV2* >( *it )->bounds( point, symbolContext );
bound = static_cast< QgsMarkerSymbolLayerV2* >( *it )->bounds( point, symbolContext );
else
bound = bound.united( dynamic_cast< QgsMarkerSymbolLayerV2* >( *it )->bounds( point, symbolContext ) );
bound = bound.united( static_cast< QgsMarkerSymbolLayerV2* >( *it )->bounds( point, symbolContext ) );
}
return bound;
}
@@ -237,7 +237,7 @@ QgsVectorFieldSymbolLayer* QgsVectorFieldSymbolLayer::clone() const
{
clonedLayer->setSubSymbol( mLineSymbol->clone() );
}
return dynamic_cast< QgsVectorFieldSymbolLayer* >( clonedLayer );
return static_cast< QgsVectorFieldSymbolLayer* >( clonedLayer );
}

QgsStringMap QgsVectorFieldSymbolLayer::properties() const

0 comments on commit 88beaae

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