Skip to content

Commit

Permalink
Fix some copy/paste errors identified by Coverity
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 3, 2015
1 parent 93a8683 commit 6f2ba0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/qgscustomprojectiondialog.cpp
Expand Up @@ -498,7 +498,7 @@ void QgsCustomProjectionDialog::on_pbnCalculate_clicked()
tr( "Internal Error (source projection invalid?)" ) );
projectedX->setText( "" );
projectedY->setText( "" );
pj_free( myProj );
pj_free( wgs84Proj );
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterlayerrenderer.cpp
Expand Up @@ -68,7 +68,7 @@ QgsRasterLayerRenderer::QgsRasterLayerRenderer( QgsRasterLayer* layer, QgsRender
catch ( QgsCsException &cs )
{
QgsMessageLog::logMessage( QObject::tr( "Could not reproject layer extent: %1" ).arg( cs.what() ), QObject::tr( "Raster" ) );
myProjectedViewExtent.setMinimal();
myProjectedLayerExtent.setMinimal();
}
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -782,7 +782,7 @@ QString QgsPostgresConn::postgisVersion()
QStringList gist = postgisParts.filter( "STATS" );
if ( gist.size() == 1 )
{
mGistAvailable = ( geos[0].indexOf( "=1" ) > -1 );
mGistAvailable = ( gist[0].indexOf( "=1" ) > -1 );
}
QStringList proj = postgisParts.filter( "PROJ" );
if ( proj.size() == 1 )
Expand Down

0 comments on commit 6f2ba0f

Please sign in to comment.