Navigation Menu

Skip to content

Commit

Permalink
Const
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 27, 2021
1 parent 9c53fb8 commit a9ba935
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsabstractgeometry.cpp
Expand Up @@ -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 );
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgscompoundcurve.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometrycollection.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit a9ba935

Please sign in to comment.