Skip to content

Commit

Permalink
astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Oct 30, 2023
1 parent aab7121 commit 28bee4b
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 39 deletions.
22 changes: 11 additions & 11 deletions app/inputprojutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ static QStringList detailsToStr( const QgsDatumTransform::TransformDetails &deta
void InputProjUtils::initCoordinateOperationHandlers()
{
QgsCoordinateTransform::setCustomMissingRequiredGridHandler( [ = ]( const QgsCoordinateReferenceSystem & sourceCrs,
const QgsCoordinateReferenceSystem & destinationCrs,
const QgsDatumTransform::GridDetails & grid )
const QgsCoordinateReferenceSystem & destinationCrs,
const QgsDatumTransform::GridDetails & grid )
{
Q_UNUSED( destinationCrs )
Q_UNUSED( sourceCrs )
Expand All @@ -79,9 +79,9 @@ void InputProjUtils::initCoordinateOperationHandlers()
} );

QgsCoordinateTransform::setCustomMissingPreferredGridHandler( [ = ]( const QgsCoordinateReferenceSystem & sourceCrs,
const QgsCoordinateReferenceSystem & destinationCrs,
const QgsDatumTransform::TransformDetails & preferredOperation,
const QgsDatumTransform::TransformDetails & availableOperation )
const QgsCoordinateReferenceSystem & destinationCrs,
const QgsDatumTransform::TransformDetails & preferredOperation,
const QgsDatumTransform::TransformDetails & availableOperation )
{
Q_UNUSED( destinationCrs )
Q_UNUSED( sourceCrs )
Expand All @@ -90,8 +90,8 @@ void InputProjUtils::initCoordinateOperationHandlers()
} );

QgsCoordinateTransform::setCustomCoordinateOperationCreationErrorHandler( [ = ]( const QgsCoordinateReferenceSystem & sourceCrs,
const QgsCoordinateReferenceSystem & destinationCrs,
const QString & error )
const QgsCoordinateReferenceSystem & destinationCrs,
const QString & error )
{
Q_UNUSED( destinationCrs )
Q_UNUSED( sourceCrs )
Expand All @@ -100,8 +100,8 @@ void InputProjUtils::initCoordinateOperationHandlers()
} );

QgsCoordinateTransform::setCustomMissingGridUsedByContextHandler( [ = ]( const QgsCoordinateReferenceSystem & sourceCrs,
const QgsCoordinateReferenceSystem & destinationCrs,
const QgsDatumTransform::TransformDetails & desired )
const QgsCoordinateReferenceSystem & destinationCrs,
const QgsDatumTransform::TransformDetails & desired )
{
Q_UNUSED( destinationCrs )
Q_UNUSED( sourceCrs )
Expand All @@ -110,8 +110,8 @@ void InputProjUtils::initCoordinateOperationHandlers()
} );

QgsCoordinateTransform::setFallbackOperationOccurredHandler( [ = ]( const QgsCoordinateReferenceSystem & sourceCrs,
const QgsCoordinateReferenceSystem & destinationCrs,
const QString & desired )
const QgsCoordinateReferenceSystem & destinationCrs,
const QString & desired )
{
Q_UNUSED( destinationCrs )
Q_UNUSED( sourceCrs )
Expand Down
18 changes: 9 additions & 9 deletions app/inpututils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,9 +755,9 @@ QgsPoint InputUtils::coordinateToPoint( const QGeoCoordinate &coor )
}

QgsPointXY InputUtils::transformPointXY( const QgsCoordinateReferenceSystem &srcCrs,
const QgsCoordinateReferenceSystem &destCrs,
const QgsCoordinateTransformContext &context,
const QgsPointXY &srcPoint )
const QgsCoordinateReferenceSystem &destCrs,
const QgsCoordinateTransformContext &context,
const QgsPointXY &srcPoint )
{
// we do not want to transform empty points,
// QGIS would convert them to a valid (0, 0) points
Expand Down Expand Up @@ -1302,9 +1302,9 @@ void InputUtils::humanReadableDistance( double srcDistance, Qgis::DistanceUnit s
}

void InputUtils::formatToMetricDistance( double srcDistance,
Qgis::DistanceUnit srcUnits,
double &destDistance,
Qgis::DistanceUnit &destUnits )
Qgis::DistanceUnit srcUnits,
double &destDistance,
Qgis::DistanceUnit &destUnits )
{
double dist = srcDistance * QgsUnitTypes::fromUnitToUnitFactor( srcUnits, Qgis::DistanceUnit::Millimeters );
if ( dist < 0 )
Expand Down Expand Up @@ -1343,9 +1343,9 @@ void InputUtils::formatToMetricDistance( double srcDistance,
}

void InputUtils::formatToImperialDistance( double srcDistance,
Qgis::DistanceUnit srcUnits,
double &destDistance,
Qgis::DistanceUnit &destUnits )
Qgis::DistanceUnit srcUnits,
double &destDistance,
Qgis::DistanceUnit &destUnits )
{
double dist = srcDistance * QgsUnitTypes::fromUnitToUnitFactor( srcUnits, Qgis::DistanceUnit::Feet );
if ( dist < 0 )
Expand Down
18 changes: 9 additions & 9 deletions app/inpututils.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,18 +235,18 @@ class InputUtils: public QObject
* Return empty QgsPointXY if the transformation could not be applied or srcPoint is empty
*/
Q_INVOKABLE static QgsPointXY transformPointXY( const QgsCoordinateReferenceSystem &srcCrs,
const QgsCoordinateReferenceSystem &destCrs,
const QgsCoordinateTransformContext &context,
const QgsPointXY &srcPoint );
const QgsCoordinateReferenceSystem &destCrs,
const QgsCoordinateTransformContext &context,
const QgsPointXY &srcPoint );

/**
* Transforms point between different crs
* Return empty QgsPoint if the transformation could not be applied or srcPoint is empty
*/
Q_INVOKABLE static QgsPoint transformPoint( const QgsCoordinateReferenceSystem &srcCrs,
const QgsCoordinateReferenceSystem &destCrs,
const QgsCoordinateTransformContext &context,
const QgsPoint &srcPoint );
const QgsCoordinateReferenceSystem &destCrs,
const QgsCoordinateTransformContext &context,
const QgsPoint &srcPoint );

/**
* Transforms point between CRS and screen pixels
Expand Down Expand Up @@ -371,9 +371,9 @@ class InputUtils: public QObject
* \returns string represetation of dist in desired destSystem. For distance less than 0, 0 is returned.
*/
Q_INVOKABLE static QString formatDistance( double distance,
Qgis::DistanceUnit units,
int decimals,
Qgis::SystemOfMeasurement destSystem = Qgis::SystemOfMeasurement::Metric );
Qgis::DistanceUnit units,
int decimals,
Qgis::SystemOfMeasurement destSystem = Qgis::SystemOfMeasurement::Metric );

/**
* Deletes file from a given path.
Expand Down
6 changes: 3 additions & 3 deletions app/position/tracking/androidtrackingbackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ AndroidTrackingBackend::~AndroidTrackingBackend()
QAndroidIntent serviceIntent( activity.object(), "uk/co/lutraconsulting/PositionTrackingService" );

activity.callMethod<jboolean>(
"stopService",
"(Landroid/content/Intent;)Z",
serviceIntent.handle().object() );
"stopService",
"(Landroid/content/Intent;)Z",
serviceIntent.handle().object() );

if ( mTrackingFile.isOpen() )
{
Expand Down
8 changes: 4 additions & 4 deletions app/position/tracking/androidtrackingbroadcast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ bool AndroidTrackingBroadcast::registerBroadcastPrivate()
javaenv->DeleteLocalRef( objectClass );

mBroadcastReceiver.callMethod<void>(
"registerBroadcastReceiver",
"(Landroid/content/Context;)V",
QNativeInterface::QAndroidApplication::context()
);
"registerBroadcastReceiver",
"(Landroid/content/Context;)V",
QNativeInterface::QAndroidApplication::context()
);

mBroadcastIsRegistered = true;

Expand Down
6 changes: 3 additions & 3 deletions core/merginapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3015,9 +3015,9 @@ ProjectDiff MerginApi::compareProjectFiles(

// check if we should download missing files that were previously ignored (e.g. selective sync has been disabled)
bool previouslyIgnoredButShouldDownload = \
config.downloadMissingFiles &&
lastSyncConfig.isValid &&
MerginApi::excludeFromSync( file.path, lastSyncConfig );
config.downloadMissingFiles &&
lastSyncConfig.isValid &&
MerginApi::excludeFromSync( file.path, lastSyncConfig );

if ( previouslyIgnoredButShouldDownload )
{
Expand Down

1 comment on commit 28bee4b

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 23.10.475311 just submitted!

Please sign in to comment.