Skip to content

Commit

Permalink
Fix typo & return string by value not ref
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Aug 16, 2021
1 parent 74512ff commit 7a7964c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/gui/auto_generated/qgsexternalresourcewidget.sip.in
Expand Up @@ -163,7 +163,7 @@ defined)
.. versionadded:: 3.22
%End

const QString &storageAuthConfigId() const;
QString storageAuthConfigId() const;
%Docstring
Returns the authentication configuration ID used for the current external storage (if defined)

Expand Down
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsexternalresourceconfigdlg.cpp
Expand Up @@ -37,7 +37,7 @@ QgsExternalResourceConfigDlg::QgsExternalResourceConfigDlg( QgsVectorLayer *vl,
{
setupUi( this );

mStorageType->addItem( tr( "Select existing file" ), QString() );
mStorageType->addItem( tr( "Select Existing file" ), QString() );
for ( QgsExternalStorage *storage : QgsApplication::externalStorageRegistry()->externalStorages() )
{
mStorageType->addItem( tr( "Store with %1" ).arg( storage->type() ), storage->type() );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsexternalresourcewidget.cpp
Expand Up @@ -249,7 +249,7 @@ void QgsExternalResourceWidget::setStorageAuthConfigId( const QString &authCfg )
mFileWidget->setStorageAuthConfigId( authCfg );
}

const QString &QgsExternalResourceWidget::storageAuthConfigId() const
QString QgsExternalResourceWidget::storageAuthConfigId() const
{
return mFileWidget->storageAuthConfigId();
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsexternalresourcewidget.h
Expand Up @@ -174,7 +174,7 @@ class GUI_EXPORT QgsExternalResourceWidget : public QWidget
* Returns the authentication configuration ID used for the current external storage (if defined)
* \since QGIS 3.22
*/
const QString &storageAuthConfigId() const;
QString storageAuthConfigId() const;

/**
* Set \a messageBar to report messages
Expand Down

0 comments on commit 7a7964c

Please sign in to comment.