Skip to content

Commit

Permalink
Readability fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 4, 2017
1 parent 11f610b commit 13614dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsmaplayermodel.cpp
Expand Up @@ -154,7 +154,7 @@ void QgsMapLayerModel::removeLayers( const QStringList &layerIds )

void QgsMapLayerModel::addLayers( const QList<QgsMapLayer *> &layers )
{
if ( layers.count( ) )
if ( !layers.empty( ) )
{
int offset = 0;
if ( mAllowEmpty )
Expand Down

0 comments on commit 13614dc

Please sign in to comment.