Skip to content

Commit

Permalink
Use OGRSpatialReferenceH instead of void pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Mar 13, 2013
1 parent 07c11a0 commit 62e9e8a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/providers/gdal/qgsgdalprovider.cpp
Expand Up @@ -160,11 +160,7 @@ QgsRasterInterface * QgsGdalProvider::clone() const
bool QgsGdalProvider::crsFromWkt( const char *wkt )
{

#ifdef DEBUG
struct OGRSpatialReferenceHS *hCRS = OSRNewSpatialReference( NULL );
#else
void *hCRS = OSRNewSpatialReference( NULL );
#endif
OGRSpatialReferenceH hCRS = OSRNewSpatialReference( NULL );

if ( OSRImportFromWkt( hCRS, ( char ** ) &wkt ) == OGRERR_NONE )
{
Expand Down

0 comments on commit 62e9e8a

Please sign in to comment.