Skip to content

Commit

Permalink
Naming fix: layerName -> layerUri
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and nyalldawson committed Nov 29, 2020
1 parent bcbf71e commit 1c1d718
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core/qgstransaction.cpp
Expand Up @@ -92,15 +92,15 @@ QString QgsTransaction::removeLayerIdOrName( const QString &str )
}

///@cond PRIVATE
QString QgsTransaction::connectionString( const QString &layerName )
QString QgsTransaction::connectionString( const QString &layerUri )
{
QString connString = QgsDataSourceUri( layerName ).connectionInfo( false );
QString connString = QgsDataSourceUri( layerUri ).connectionInfo( false );
// In the case of a OGR datasource, connectionInfo() will return an empty
// string. In that case, use the layer->source() itself, and strip any
// reference to layers from it.
if ( connString.isEmpty() )
{
connString = removeLayerIdOrName( layerName );
connString = removeLayerIdOrName( layerUri );
}
return connString;
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgstransaction.h
Expand Up @@ -160,7 +160,7 @@ class CORE_EXPORT QgsTransaction : public QObject SIP_ABSTRACT

///@cond PRIVATE
// For internal use only, or by QgsTransactionGroup
static QString connectionString( const QString &layerName ) SIP_SKIP;
static QString connectionString( const QString &layerUri ) SIP_SKIP;
///@endcond

signals:
Expand Down

0 comments on commit 1c1d718

Please sign in to comment.