Skip to content
Permalink
Browse files

missing const ref

  • Loading branch information
3nids authored and nyalldawson committed Nov 30, 2017
1 parent 5c58304 commit ed0c93f675a7780251f906c5773abc9d3953df41
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/gui/qgsdatumtransformdialog.cpp
  2. +2 −2 src/gui/qgsdatumtransformdialog.h
@@ -268,15 +268,15 @@ void QgsDatumTransformDialog::mDatumTransformTreeWidget_currentItemChanged( QTre
setOKButtonEnabled();
}

void QgsDatumTransformDialog::setSourceCrs( QgsCoordinateReferenceSystem sourceCrs )
void QgsDatumTransformDialog::setSourceCrs( const QgsCoordinateReferenceSystem &sourceCrs )
{
mSourceCrs = sourceCrs;
mDatumTransforms = QgsCoordinateTransform::datumTransformations( mSourceCrs, mDestinationCrs );
load();
setOKButtonEnabled();
}

void QgsDatumTransformDialog::setDestinationCrs( QgsCoordinateReferenceSystem destinationCrs )
void QgsDatumTransformDialog::setDestinationCrs( const QgsCoordinateReferenceSystem &destinationCrs )
{
mDestinationCrs = destinationCrs;
mDatumTransforms = QgsCoordinateTransform::datumTransformations( mSourceCrs, mDestinationCrs );
@@ -59,8 +59,8 @@ class GUI_EXPORT QgsDatumTransformDialog : public QDialog, private Ui::QgsDatumT
private slots:
void mHideDeprecatedCheckBox_stateChanged( int state );
void mDatumTransformTreeWidget_currentItemChanged( QTreeWidgetItem *, QTreeWidgetItem * );
void setSourceCrs( QgsCoordinateReferenceSystem sourceCrs );
void setDestinationCrs( QgsCoordinateReferenceSystem destinationCrs );
void setSourceCrs( const QgsCoordinateReferenceSystem &sourceCrs );
void setDestinationCrs( const QgsCoordinateReferenceSystem &destinationCrs );

private:
bool gridShiftTransformation( const QString &itemText ) const;

0 comments on commit ed0c93f

Please sign in to comment.
You can’t perform that action at this time.