Skip to content
Permalink
Browse files
Const
  • Loading branch information
nyalldawson committed Apr 27, 2021
1 parent 9c53fb8 commit a9ba9351c5cfade0f2707fd7b2ce0771f5094420
@@ -51,7 +51,7 @@ int QgsAbstractGeometry::compareTo( const QgsAbstractGeometry *other ) const
if ( sortIndex() != other->sortIndex() )
{
//different geometry types
int diff = sortIndex() - other->sortIndex();
const int diff = sortIndex() - other->sortIndex();
return ( diff > 0 ) - ( diff < 0 );
}

@@ -79,7 +79,7 @@ int QgsCompoundCurve::compareToSameClass( const QgsAbstractGeometry *other ) con
{
const QgsAbstractGeometry *aGeom = mCurves[i];
const QgsAbstractGeometry *bGeom = otherCurve->mCurves[j];
int comparison = aGeom->compareTo( bGeom );
const int comparison = aGeom->compareTo( bGeom );
if ( comparison != 0 )
{
return comparison;
@@ -1058,7 +1058,7 @@ int QgsGeometryCollection::compareToSameClass( const QgsAbstractGeometry *other
{
const QgsAbstractGeometry *aGeom = mGeometries[i];
const QgsAbstractGeometry *bGeom = otherCollection->mGeometries[j];
int comparison = aGeom->compareTo( bGeom );
const int comparison = aGeom->compareTo( bGeom );
if ( comparison != 0 )
{
return comparison;

0 comments on commit a9ba935

Please sign in to comment.