Skip to content
Permalink
Browse files

Coverity fixes (uninitialised members, uncaught exceptions)

  • Loading branch information
nyalldawson committed Feb 22, 2015
1 parent d8b715a commit 2481ce63e63754954d0f1cbac5e1bb6c9ee93adc
@@ -841,6 +841,22 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,

QgisApp::QgisApp()
: QMainWindow( 0, 0 )
, mStyleSheetBuilder( 0 )
, mActionPluginSeparator1( 0 )
, mActionPluginSeparator2( 0 )
, mActionRasterSeparator( 0 )
, mMapToolGroup( 0 )
, mPreviewGroup( 0 )
#ifdef Q_OS_MAC
, mWindowMenu( 0 )
#endif
, mPanelMenu( 0 )
, mToolbarMenu( 0 )
, mLayerTreeDock( 0 )
, mLayerOrderDock( 0 )
, mOverviewDock( 0 )
, mpGpsDock( 0 )
, mLogDock( 0 )
, mNonEditMapTool( 0 )
, mScaleLabel( 0 )
, mScaleEdit( 0 )
@@ -420,6 +420,7 @@ QgsSpatiaLiteProvider::QgsSpatiaLiteProvider( QString const &uri )
, geomType( QGis::WKBUnknown )
, sqliteHandle( NULL )
, mSrid( -1 )
, numberFeatures( 0 )
, spatialIndexRTree( false )
, spatialIndexMbrCache( false )
, enabledCapabilities( 0 )
@@ -243,7 +243,17 @@ void QgsWCSProjectParser::describeCoverage( const QString& aCoveName, QDomElemen
const QgsCoordinateReferenceSystem& layerCrs = rLayer->crs();
QgsCoordinateTransform t( layerCrs, QgsCoordinateReferenceSystem( 4326 ) );
//transform
QgsRectangle BBox = t.transformBoundingBox( rLayer->extent() );
QgsRectangle BBox = rLayer->extent();
try
{
QgsRectangle transformedBox = t.transformBoundingBox( BBox );
BBox = transformedBox;
}
catch ( QgsCsException &e )
{
QgsDebugMsg( QString( "Transform error caught: %1" ).arg( e.what() ) );
}

QDomElement lonLatElem = doc.createElement( "lonLatEnvelope" );
lonLatElem.setAttribute( "srsName", "urn:ogc:def:crs:OGC:1.3:CRS84" );
QDomElement lowerPosElem = doc.createElement( "gml:pos" );
@@ -2954,7 +2954,15 @@ QDomElement QgsWMSServer::createFeatureGML(
QgsRectangle box = feat->geometry()->boundingBox();
if ( transform )
{
box = transform->transformBoundingBox( box );
try
{
QgsRectangle transformedBox = transform->transformBoundingBox( box );
box = transformedBox;
}
catch ( QgsCsException &e )
{
QgsDebugMsg( QString( "Transform error caught: %1" ).arg( e.what() ) );
}
}

QDomElement bbElem = doc.createElement( "gml:boundedBy" );

0 comments on commit 2481ce6

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