Skip to content

Commit 06b4725

Browse files
committedJun 9, 2015
Rename QgsGeometryData to QgsGeometryPrivate. Update class comment
1 parent 73ae0f7 commit 06b4725

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed
 

‎src/core/geometry/qgsgeometry.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ email : morb at ozemail dot com dot au
5050
#include <winsock.h>
5151
#endif
5252

53-
struct QgsGeometryData
53+
struct QgsGeometryPrivate
5454
{
5555
QAtomicInt ref;
5656
QgsAbstractGeometryV2* geometry;
5757
};
5858

59-
QgsGeometry::QgsGeometry(): d( new QgsGeometryData() ), mWkb( 0 ), mWkbSize( 0 ), mGeos( 0 )
59+
QgsGeometry::QgsGeometry(): d( new QgsGeometryPrivate() ), mWkb( 0 ), mWkbSize( 0 ), mGeos( 0 )
6060
{
6161
d->geometry = 0;
6262
d->ref = QAtomicInt( 1 );
@@ -75,7 +75,7 @@ QgsGeometry::~QgsGeometry()
7575
removeWkbGeos();
7676
}
7777

78-
QgsGeometry::QgsGeometry( QgsAbstractGeometryV2* geom ): d( new QgsGeometryData() ), mWkb( 0 ), mWkbSize( 0 ), mGeos( 0 )
78+
QgsGeometry::QgsGeometry( QgsAbstractGeometryV2* geom ): d( new QgsGeometryPrivate() ), mWkb( 0 ), mWkbSize( 0 ), mGeos( 0 )
7979
{
8080
d->geometry = geom;
8181
d->ref = QAtomicInt( 1 );
@@ -119,7 +119,7 @@ void QgsGeometry::detach( bool cloneGeom )
119119
{
120120
cGeom = d->geometry->clone();
121121
}
122-
d = new QgsGeometryData();
122+
d = new QgsGeometryPrivate();
123123
d->geometry = cGeom;
124124
d->ref = QAtomicInt( 1 );
125125
}

‎src/core/geometry/qgsgeometry.h

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,12 @@ typedef QVector<QgsPolygon> QgsMultiPolygon;
5959

6060
class QgsRectangle;
6161

62-
/** \ingroup core
63-
* A geometry is the spatial representation of a feature.
64-
* Represents a geometry with input and output in formats specified by
65-
* (at least) the Open Geospatial Consortium (WKB / Wkt), and containing
66-
* various functions for geoprocessing of the geometry.
67-
*
68-
* The geometry is represented internally by the OGC WKB format or
69-
* as GEOS geometry. Some functions use WKB for their work, others
70-
* use GEOS.
71-
*
72-
* TODO: migrate completely to GEOS and only support WKB/Wkt import/export.
73-
*
74-
* @author Brendan Morley
75-
*/
7662
class QgsConstWkbPtr;
7763

78-
struct QgsGeometryData;
64+
struct QgsGeometryPrivate;
65+
66+
/** \ingroup core
67+
- * A geometry is the spatial representation of a feature. This class is deprecated. Please use QgsAbstractGeometryV2 directly for new code*/
7968

8069
class CORE_EXPORT QgsGeometry
8170
{
@@ -715,7 +704,7 @@ class CORE_EXPORT QgsGeometry
715704

716705
private:
717706

718-
QgsGeometryData* d; //implicitely shared data pointer
707+
QgsGeometryPrivate* d; //implicitely shared data pointer
719708
mutable const unsigned char* mWkb; //store wkb pointer for backward compatibility
720709
mutable int mWkbSize;
721710
mutable GEOSGeometry* mGeos;

0 commit comments

Comments
 (0)
Please sign in to comment.