Skip to content

Commit 10379bc

Browse files
author
jef
committed
fix compile error
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11383 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4ab570e commit 10379bc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/core/qgscoordinatereferencesystem.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ bool QgsCoordinateReferenceSystem::operator==( const QgsCoordinateReferenceSyste
881881

882882
// OSRIsSame is not relaibel when it comes to comparing +towgs84 parameters
883883
// Use string compare on WKT instead.
884-
if ( ( OSRExportToWkt( mCRS, &thisStr ) == OGRERR_NONE ) )
884+
if (( OSRExportToWkt( mCRS, &thisStr ) == OGRERR_NONE ) )
885885
{
886886
if ( OSRExportToWkt( theSrs.mCRS, &otherStr ) == OGRERR_NONE )
887887
{
@@ -890,13 +890,13 @@ bool QgsCoordinateReferenceSystem::operator==( const QgsCoordinateReferenceSyste
890890
if ( !strcmp( thisStr, otherStr ) )
891891
{
892892
QgsDebugMsg( QString( "MATCHED!" ) + otherStr );
893-
OGRFree( *thisStr );
894-
OGRFree( *otherStr );
893+
CPLFree( thisStr );
894+
CPLFree( otherStr );
895895
return true;
896896
}
897-
OGRFree( *otherStr );
897+
CPLFree( otherStr );
898898
}
899-
OGRFree( *thisStr );
899+
CPLFree( thisStr );
900900
}
901901
return false;
902902
}

0 commit comments

Comments
 (0)