Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
constify externalStorageFromType
  • Loading branch information
troopa81 committed Jul 30, 2021
1 parent deed238 commit 8c3f9cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -33,7 +33,7 @@ Constructor - creates a registry of external storage backends

~QgsExternalStorageRegistry();

QgsExternalStorage *externalStorageFromType( const QString &type );
QgsExternalStorage *externalStorageFromType( const QString &type ) const;
%Docstring
Returns external storage implementation if the storage ``type`` matches one.
Returns None otherwise
Expand Down
2 changes: 1 addition & 1 deletion src/core/externalstorage/qgsexternalstorageregistry.cpp
Expand Up @@ -28,7 +28,7 @@ QgsExternalStorageRegistry::~QgsExternalStorageRegistry()
qDeleteAll( mBackends );
}

QgsExternalStorage *QgsExternalStorageRegistry::externalStorageFromType( const QString &type )
QgsExternalStorage *QgsExternalStorageRegistry::externalStorageFromType( const QString &type ) const
{
return mBackends.value( type );
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/externalstorage/qgsexternalstorageregistry.h
Expand Up @@ -51,7 +51,7 @@ class CORE_EXPORT QgsExternalStorageRegistry
* Returns external storage implementation if the storage \a type matches one.
* Returns nullptr otherwise
*/
QgsExternalStorage *externalStorageFromType( const QString &type );
QgsExternalStorage *externalStorageFromType( const QString &type ) const;

/**
* Returns a list of registered project storage implementations
Expand Down

0 comments on commit 8c3f9cd

Please sign in to comment.