Skip to content
Permalink
Browse files

Constify, QStringLiteral

  • Loading branch information
nyalldawson committed Mar 22, 2019
1 parent dc6869d commit 6afc6e6fb15a37376d6b0742eda14fc86e2163de
Showing with 6 additions and 6 deletions.
  1. +4 −4 src/gui/qgsdatumtransformdialog.cpp
  2. +2 −2 src/gui/qgsdatumtransformdialog.h
@@ -268,8 +268,8 @@ void QgsDatumTransformDialog::accept()
if ( destinationDatumTransform >= 0 )
destinationDatumProj = QgsDatumTransform::datumTransformToProj( destinationDatumTransform );

settings.setValue( srcAuthId + "//" + destAuthId + "_srcTransform", sourceDatumProj );
settings.setValue( srcAuthId + "//" + destAuthId + "_destTransform", destinationDatumProj );
settings.setValue( srcAuthId + QStringLiteral( "//" ) + destAuthId + QStringLiteral( "_srcTransform" ), sourceDatumProj );
settings.setValue( srcAuthId + QStringLiteral( "//" ) + destAuthId + QStringLiteral( "_destTransform" ), destinationDatumProj );
}
QDialog::accept();
}
@@ -282,7 +282,7 @@ void QgsDatumTransformDialog::reject()
QDialog::reject();
}

bool QgsDatumTransformDialog::shouldAskUserForSelection()
bool QgsDatumTransformDialog::shouldAskUserForSelection() const
{
if ( mDatumTransforms.count() > 1 )
{
@@ -292,7 +292,7 @@ bool QgsDatumTransformDialog::shouldAskUserForSelection()
return false;
}

QPair<QPair<QgsCoordinateReferenceSystem, int>, QPair<QgsCoordinateReferenceSystem, int> > QgsDatumTransformDialog::defaultDatumTransform()
QPair<QPair<QgsCoordinateReferenceSystem, int>, QPair<QgsCoordinateReferenceSystem, int> > QgsDatumTransformDialog::defaultDatumTransform() const
{
QPair<QPair<QgsCoordinateReferenceSystem, int>, QPair<QgsCoordinateReferenceSystem, int> > preferredNonDeprecated;
preferredNonDeprecated.first.first = mSourceCrs;
@@ -92,7 +92,7 @@ class GUI_EXPORT QgsDatumTransformDialog : public QDialog, private Ui::QgsDatumT
*
* \see defaultDatumTransform()
*/
bool shouldAskUserForSelection();
bool shouldAskUserForSelection() const;

/**
* Returns the default transform (or only available transform). This represents the transform which
@@ -101,7 +101,7 @@ class GUI_EXPORT QgsDatumTransformDialog : public QDialog, private Ui::QgsDatumT
* \see shouldAskUserForSelection()
* \see applyDefaultTransform()
*/
QPair< QPair<QgsCoordinateReferenceSystem, int>, QPair<QgsCoordinateReferenceSystem, int > > defaultDatumTransform();
QPair< QPair<QgsCoordinateReferenceSystem, int>, QPair<QgsCoordinateReferenceSystem, int > > defaultDatumTransform() const;

/**
* Applies the defaultDatumTransform(), adding it to the current QgsProject instance.

0 comments on commit 6afc6e6

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