Skip to content

Commit

Permalink
Remove extra const keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenD98 committed Aug 3, 2024
1 parent 7a900a9 commit 6ffdbbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/utils/qfieldcloudutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const QString QFieldCloudUtils::getProjectId( const QString &fileName )
return QString();
}

const QString QFieldCloudUtils::userFriendlyErrorString( const QString &errorMessage )
QString QFieldCloudUtils::userFriendlyErrorString( const QString &errorMessage )
{
QString resultErrorMessage = errorMessage.startsWith( "[QF/" ) ? tr( "A server error has occured, please try again." ) : tr( "A network error has occured, please try again." );

Expand All @@ -91,7 +91,7 @@ const QString QFieldCloudUtils::userFriendlyErrorString( const QString &errorMes
return resultErrorMessage;
}

const QString QFieldCloudUtils::documentationFromErrorString( const QString &errorMessage )
QString QFieldCloudUtils::documentationFromErrorString( const QString &errorMessage )
{
QString linkToDocumentation;

Expand Down
4 changes: 2 additions & 2 deletions src/core/utils/qfieldcloudutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ class QFieldCloudUtils : public QObject
* @param errorMessage reveiced error message
* @return const QString
*/
Q_INVOKABLE static const QString userFriendlyErrorString( const QString &errorMessage );
Q_INVOKABLE static QString userFriendlyErrorString( const QString &errorMessage );

/**
* Returns link to documentation page related to error message.
*
* @param errorMessage reveiced error message
* @return const QString
*/
Q_INVOKABLE static const QString documentationFromErrorString( const QString &errorMessage );
Q_INVOKABLE static QString documentationFromErrorString( const QString &errorMessage );

//! Sets a \a setting to a given \a value for project with given \a projectId to the permanent storage.
static void setProjectSetting( const QString &projectId, const QString &setting, const QVariant &value );
Expand Down

0 comments on commit 6ffdbbe

Please sign in to comment.