@@ -150,6 +150,8 @@ QgsGeometry* QgsGeometry::fromPoint(const QgsPoint& point)
150
150
{
151
151
#if GEOS_VERSION_MAJOR < 3
152
152
delete e;
153
+ #else
154
+ UNUSED (e);
153
155
#endif
154
156
return 0 ;
155
157
}
@@ -175,6 +177,8 @@ QgsGeometry* QgsGeometry::fromMultiPoint(const QgsMultiPoint& multipoint)
175
177
{
176
178
#if GEOS_VERSION_MAJOR < 3
177
179
delete e;
180
+ #else
181
+ UNUSED (e);
178
182
#endif
179
183
delete pointVector; return 0 ;
180
184
}
@@ -189,6 +193,8 @@ QgsGeometry* QgsGeometry::fromMultiPoint(const QgsMultiPoint& multipoint)
189
193
{
190
194
#if GEOS_VERSION_MAJOR < 3
191
195
delete e;
196
+ #else
197
+ UNUSED (e);
192
198
#endif
193
199
return 0 ;
194
200
}
@@ -220,6 +226,8 @@ QgsGeometry* QgsGeometry::fromPolyline(const QgsPolyline& polyline)
220
226
{
221
227
#if GEOS_VERSION_MAJOR < 3
222
228
delete e;
229
+ #else
230
+ UNUSED (e);
223
231
#endif
224
232
delete seq;
225
233
return 0 ;
@@ -251,6 +259,8 @@ QgsGeometry* QgsGeometry::fromMultiPolyline(const QgsMultiPolyline& multiline)
251
259
{
252
260
#if GEOS_VERSION_MAJOR < 3
253
261
delete e;
262
+ #else
263
+ UNUSED (e);
254
264
#endif
255
265
delete lineVector; delete seq;
256
266
return 0 ;
@@ -267,6 +277,8 @@ QgsGeometry* QgsGeometry::fromMultiPolyline(const QgsMultiPolyline& multiline)
267
277
{
268
278
#if GEOS_VERSION_MAJOR < 3
269
279
delete e;
280
+ #else
281
+ UNUSED (e);
270
282
#endif
271
283
return 0 ;
272
284
}
@@ -304,6 +316,8 @@ static GEOS_GEOM::LinearRing* _createGeosLinearRing(const QgsPolyline& ring)
304
316
{
305
317
#if GEOS_VERSION_MAJOR < 3
306
318
delete e;
319
+ #else
320
+ UNUSED (e);
307
321
#endif
308
322
return 0 ;
309
323
}
@@ -338,6 +352,8 @@ QgsGeometry* QgsGeometry::fromPolygon(const QgsPolygon& polygon)
338
352
{
339
353
#if GEOS_VERSION_MAJOR < 3
340
354
delete e;
355
+ #else
356
+ UNUSED (e);
341
357
#endif
342
358
return 0 ;
343
359
}
@@ -374,6 +390,8 @@ QgsGeometry* QgsGeometry::fromMultiPolygon(const QgsMultiPolygon& multipoly)
374
390
{
375
391
#if GEOS_VERSION_MAJOR < 3
376
392
delete e;
393
+ #else
394
+ UNUSED (e);
377
395
#endif
378
396
delete polygons; return 0 ;
379
397
}
@@ -389,6 +407,8 @@ QgsGeometry* QgsGeometry::fromMultiPolygon(const QgsMultiPolygon& multipoly)
389
407
{
390
408
#if GEOS_VERSION_MAJOR < 3
391
409
delete e;
410
+ #else
411
+ UNUSED (e);
392
412
#endif
393
413
return 0 ;
394
414
}
@@ -2589,6 +2609,8 @@ int QgsGeometry::addRing(const QList<QgsPoint>& ring)
2589
2609
{
2590
2610
#if GEOS_VERSION_MAJOR < 3
2591
2611
delete e;
2612
+ #else
2613
+ UNUSED (e);
2592
2614
#endif
2593
2615
delete newSequence;
2594
2616
return 3 ;
@@ -2781,6 +2803,8 @@ int QgsGeometry::addIsland(const QList<QgsPoint>& ring)
2781
2803
{
2782
2804
#if GEOS_VERSION_MAJOR < 3
2783
2805
delete e;
2806
+ #else
2807
+ UNUSED (e);
2784
2808
#endif
2785
2809
delete newSequence;
2786
2810
return 2 ;
@@ -3022,6 +3046,8 @@ int QgsGeometry::splitGeometry(const QList<QgsPoint>& splitLine, QList<QgsGeomet
3022
3046
{
3023
3047
#if GEOS_VERSION_MAJOR < 3
3024
3048
delete e;
3049
+ #else
3050
+ UNUSED (e);
3025
3051
#endif
3026
3052
return 2 ;
3027
3053
}
@@ -3078,6 +3104,8 @@ int QgsGeometry::makeDifference(QgsGeometry* other)
3078
3104
{
3079
3105
#if GEOS_VERSION_MAJOR < 3
3080
3106
delete e;
3107
+ #else
3108
+ UNUSED (e);
3081
3109
#endif
3082
3110
return 5 ;
3083
3111
}
@@ -3973,6 +4001,8 @@ bool QgsGeometry::exportWkbToGeos()
3973
4001
{
3974
4002
#if GEOS_VERSION_MAJOR < 3
3975
4003
delete e;
4004
+ #else
4005
+ UNUSED (e);
3976
4006
#endif
3977
4007
return FALSE ;
3978
4008
}
@@ -4278,7 +4308,7 @@ bool QgsGeometry::exportGeosToWkb()
4278
4308
// loop over lines
4279
4309
int lineType = QGis::WKBLineString;
4280
4310
GEOS_GEOM::CoordinateSequence* lineCoordinates = 0 ;
4281
- int lineSize;
4311
+ GEOS_SIZE_T lineSize;
4282
4312
double x, y;
4283
4313
4284
4314
for (GEOS_SIZE_T i = 0 ; i < theMultiLineString->getNumGeometries (); ++i)
@@ -4837,7 +4867,7 @@ int QgsGeometry::mergeGeometriesMultiTypeSplit(QList<GEOS_GEOM::Geometry*>& spli
4837
4867
{
4838
4868
// is this geometry a part of the original multitype?
4839
4869
bool isPart = false ;
4840
- for (int j = 0 ; j < collection->getNumGeometries (); ++j)
4870
+ for (GEOS_SIZE_T j = 0 ; j < collection->getNumGeometries (); ++j)
4841
4871
{
4842
4872
if (copyList.at (i)->equals (collection->getGeometryN (j)))
4843
4873
{
@@ -5168,6 +5198,8 @@ QgsGeometry* QgsGeometry::Union(QgsGeometry* geometry)
5168
5198
{
5169
5199
#if GEOS_VERSION_MAJOR < 3
5170
5200
delete e;
5201
+ #else
5202
+ UNUSED (e);
5171
5203
#endif
5172
5204
// return this geometry if union not possible
5173
5205
return new QgsGeometry (*this );
0 commit comments