Skip to content

Commit

Permalink
Address const review
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Dec 27, 2024
1 parent 973cafd commit 7bed9b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/positioning/positioningsource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void PositioningSource::setBackgroundMode( bool backgroundMode )
if ( mBackgroundMode )
{
QFile file( QStringLiteral( "%1.information" ).arg( backgroundFilePath ) );
file.open( QFile::WriteOnly );
file.open( QFile::Truncate );
file.close();
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsquick/qgsquickcoordinatetransformer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ QgsCoordinateTransformContext QgsQuickCoordinateTransformer::transformContext()
return mCoordinateTransform.context();
}

QgsPoint QgsQuickCoordinateTransformer::transformPosition( const QgsPoint &position )
QgsPoint QgsQuickCoordinateTransformer::transformPosition( const QgsPoint &position ) const
{
return processPosition( position );
}
Expand All @@ -118,7 +118,7 @@ void QgsQuickCoordinateTransformer::updatePosition()
emit projectedPositionChanged();
}

QgsPoint QgsQuickCoordinateTransformer::processPosition( const QgsPoint &position )
QgsPoint QgsQuickCoordinateTransformer::processPosition( const QgsPoint &position ) const
{
double x = position.x();
double y = position.y();
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsquick/qgsquickcoordinatetransformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class QgsQuickCoordinateTransformer : public QObject
//!\copydoc QgsQuickCoordinateTransformer::verticalGrid
void setVerticalGrid( const QString &grid );

Q_INVOKABLE QgsPoint transformPosition( const QgsPoint &position );
Q_INVOKABLE QgsPoint transformPosition( const QgsPoint &position ) const;

signals:
//!\copydoc QgsQuickCoordinateTransformer::projectedPosition
Expand Down Expand Up @@ -156,7 +156,7 @@ class QgsQuickCoordinateTransformer : public QObject

private:
void updatePosition();
QgsPoint processPosition( const QgsPoint &position );
QgsPoint processPosition( const QgsPoint &position ) const;

QgsPoint mProjectedPosition;
QgsPoint mSourcePosition;
Expand Down

0 comments on commit 7bed9b1

Please sign in to comment.