Skip to content

Commit

Permalink
Make helper functions only used in this cpp file static
Browse files Browse the repository at this point in the history
  • Loading branch information
joto authored and nyalldawson committed Oct 23, 2021
1 parent b27190f commit f1a4c7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/decorations/qgsdecorationgrid.cpp
Expand Up @@ -375,7 +375,7 @@ void QgsDecorationGrid::drawCoordinateAnnotation( QgsRenderContext &context, QPo
QgsTextRenderer::drawText( QPointF( xpos, ypos ), rotation, QgsTextRenderer::AlignLeft, annotationStringList, context, mTextFormat );
}

bool clipByRect( QLineF &line, const QPolygonF &rect )
static bool clipByRect( QLineF &line, const QPolygonF &rect )
{
QVector<QLineF> borderLines;
borderLines << QLineF( rect.at( 0 ), rect.at( 1 ) );
Expand Down Expand Up @@ -407,7 +407,7 @@ bool clipByRect( QLineF &line, const QPolygonF &rect )
return true;
}

QPolygonF canvasExtent( const QgsMapSettings &mapSettings )
static QPolygonF canvasExtent( const QgsMapSettings &mapSettings )
{
QPolygonF poly;
const QgsRectangle extent = mapSettings.visibleExtent();
Expand Down

0 comments on commit f1a4c7d

Please sign in to comment.