[QGIS Commit] r11383 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Aug 14 15:32:27 EDT 2009


Author: jef
Date: 2009-08-14 15:32:26 -0400 (Fri, 14 Aug 2009)
New Revision: 11383

Modified:
   trunk/qgis/src/core/qgscoordinatereferencesystem.cpp
Log:
fix compile error

Modified: trunk/qgis/src/core/qgscoordinatereferencesystem.cpp
===================================================================
--- trunk/qgis/src/core/qgscoordinatereferencesystem.cpp	2009-08-14 19:05:00 UTC (rev 11382)
+++ trunk/qgis/src/core/qgscoordinatereferencesystem.cpp	2009-08-14 19:32:26 UTC (rev 11383)
@@ -881,7 +881,7 @@
 
   // 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 @@
       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;
 }



More information about the QGIS-commit mailing list