Skip to content

Commit 88beaae

Browse files
committed
Minor coverity fixes
1 parent 73ac9f9 commit 88beaae

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/analysis/interpolation/LinTriangleInterpolator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class ANALYSIS_EXPORT LinTriangleInterpolator : public TriangleInterpolator
4949
};
5050

5151
inline LinTriangleInterpolator::LinTriangleInterpolator()
52+
: mTIN( 0 )
5253
{
5354

5455
}

src/analysis/interpolation/ParametricLine.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ class ANALYSIS_EXPORT ParametricLine
5858

5959
//-----------------------------------------constructors and destructor----------------------
6060

61-
inline ParametricLine::ParametricLine() : mParent( 0 ), mControlPoly( 0 )
61+
inline ParametricLine::ParametricLine() : mDegree( 0 ), mParent( 0 ), mControlPoly( 0 )
6262
{
6363

6464
}
6565

66-
inline ParametricLine::ParametricLine( ParametricLine* par, QVector<Point3D*>* controlpoly ) : mParent( par ), mControlPoly( controlpoly )
66+
inline ParametricLine::ParametricLine( ParametricLine* par, QVector<Point3D*>* controlpoly ) : mDegree( 0 ), mParent( par ), mControlPoly( controlpoly )
6767
{
6868

6969
}

src/core/symbology-ng/qgssymbolv2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,9 +874,9 @@ QRectF QgsMarkerSymbolV2::bounds( const QPointF& point, QgsRenderContext& contex
874874
for ( QgsSymbolLayerV2List::const_iterator it = mLayers.constBegin(); it != mLayers.constEnd(); ++it )
875875
{
876876
if ( bound.isNull() )
877-
bound = dynamic_cast< QgsMarkerSymbolLayerV2* >( *it )->bounds( point, symbolContext );
877+
bound = static_cast< QgsMarkerSymbolLayerV2* >( *it )->bounds( point, symbolContext );
878878
else
879-
bound = bound.united( dynamic_cast< QgsMarkerSymbolLayerV2* >( *it )->bounds( point, symbolContext ) );
879+
bound = bound.united( static_cast< QgsMarkerSymbolLayerV2* >( *it )->bounds( point, symbolContext ) );
880880
}
881881
return bound;
882882
}

src/core/symbology-ng/qgsvectorfieldsymbollayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ QgsVectorFieldSymbolLayer* QgsVectorFieldSymbolLayer::clone() const
237237
{
238238
clonedLayer->setSubSymbol( mLineSymbol->clone() );
239239
}
240-
return dynamic_cast< QgsVectorFieldSymbolLayer* >( clonedLayer );
240+
return static_cast< QgsVectorFieldSymbolLayer* >( clonedLayer );
241241
}
242242

243243
QgsStringMap QgsVectorFieldSymbolLayer::properties() const

0 commit comments

Comments
 (0)