Skip to content

Commit

Permalink
Remove default statements for better compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 19, 2017
1 parent 328fc9c commit f6d7120
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/core/geometry/qgsregularpolygon.cpp
Expand Up @@ -30,7 +30,7 @@ QgsRegularPolygon::QgsRegularPolygon()
}


QgsRegularPolygon::QgsRegularPolygon( const QgsPoint &center, const double radius, const double azimuth, const int numSides, const ConstructionOption circle )
QgsRegularPolygon::QgsRegularPolygon( const QgsPoint &center, const double radius, const double azimuth, const unsigned int numSides, const ConstructionOption circle )
: mCenter( center )
, mFirstVertex( QgsPoint() )
, mNumberSides( 0 )
Expand All @@ -56,15 +56,13 @@ QgsRegularPolygon::QgsRegularPolygon( const QgsPoint &center, const double radiu
mFirstVertex = mCenter.project( mRadius, azimuth - centralAngle( numSides ) / 2 );
break;
}
default:
break;
}

}

}

QgsRegularPolygon::QgsRegularPolygon( const QgsPoint &center, const QgsPoint &pt1, const int numSides, const ConstructionOption circle )
QgsRegularPolygon::QgsRegularPolygon( const QgsPoint &center, const QgsPoint &pt1, const unsigned int numSides, const ConstructionOption circle )
: mCenter( center )
, mFirstVertex( QgsPoint() )
, mNumberSides( 0 )
Expand All @@ -90,15 +88,13 @@ QgsRegularPolygon::QgsRegularPolygon( const QgsPoint &center, const QgsPoint &pt
mFirstVertex = mCenter.project( mRadius, azimuth - centralAngle( numSides ) / 2 );
break;
}
default:
break;
}

}

}

QgsRegularPolygon::QgsRegularPolygon( const QgsPoint &pt1, const QgsPoint &pt2, const int numSides )
QgsRegularPolygon::QgsRegularPolygon( const QgsPoint &pt1, const QgsPoint &pt2, const unsigned int numSides )
: mCenter( QgsPoint() )
, mFirstVertex( QgsPoint() )
, mNumberSides( 0 )
Expand Down Expand Up @@ -166,7 +162,7 @@ void QgsRegularPolygon::setFirstVertex( const QgsPoint &firstVertex )
mCenter = mFirstVertex.project( mRadius, azimuth );
}

void QgsRegularPolygon::setNumberSides( const int numSides )
void QgsRegularPolygon::setNumberSides( const unsigned int numSides )
{
if ( numSides >= 3 )
{
Expand Down

0 comments on commit f6d7120

Please sign in to comment.