Skip to content

Commit

Permalink
fix OGRSpatialReferenceH member declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 21, 2012
1 parent 331ef1b commit f24862a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/core/qgscoordinatereferencesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,15 @@ typedef struct sqlite3 sqlite3;
//qgis includes
#include "qgis.h"

#ifdef DEBUG
typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
#else
typedef void *OGRSpatialReferenceH;
#endif

class QgsCoordinateReferenceSystem;
typedef void ( *CUSTOM_CRS_VALIDATION )( QgsCoordinateReferenceSystem* );


/** \ingroup core
* Class for storing a coordinate reference system (CRS)
*/
Expand Down Expand Up @@ -472,7 +477,7 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
//! Helper for sql-safe value quoting
static QString quotedValue( QString value );

void *mCRS;
OGRSpatialReferenceH mCRS;

bool loadFromDb( QString db, QString expression, QString value );

Expand Down

0 comments on commit f24862a

Please sign in to comment.