fix compile error

git-svn-id: http://svn.osgeo.org/qgis/trunk@11383 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2009-08-14 19:32:26 +00:00
parent 59f3c8b354
commit 7085cf57c0

View File

@ -881,7 +881,7 @@ bool QgsCoordinateReferenceSystem::operator==( const QgsCoordinateReferenceSyste
// OSRIsSame is not relaibel when it comes to comparing +towgs84 parameters
// Use string compare on WKT instead.
if ( ( OSRExportToWkt( mCRS, &thisStr ) == OGRERR_NONE ) )
if (( OSRExportToWkt( mCRS, &thisStr ) == OGRERR_NONE ) )
{
if ( OSRExportToWkt( theSrs.mCRS, &otherStr ) == OGRERR_NONE )
{
@ -890,13 +890,13 @@ bool QgsCoordinateReferenceSystem::operator==( const QgsCoordinateReferenceSyste
if ( !strcmp( thisStr, otherStr ) )
{
QgsDebugMsg( QString( "MATCHED!" ) + otherStr );
OGRFree( *thisStr );
OGRFree( *otherStr );
CPLFree( thisStr );
CPLFree( otherStr );
return true;
}
OGRFree( *otherStr );
CPLFree( otherStr );
}
OGRFree( *thisStr );
CPLFree( thisStr );
}
return false;
}