Skip to content
Permalink
Browse files
Make helper functions only used in this cpp file static
  • Loading branch information
joto authored and nyalldawson committed Oct 23, 2021
1 parent b27190f commit f1a4c7d6635e49463165c6b5312fe0e32d4d96ef
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/decorations/qgsdecorationgrid.cpp
@@ -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 ) );
@@ -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();

0 comments on commit f1a4c7d

Please sign in to comment.