Skip to content

Commit 13614dc

Browse files
committedDec 4, 2017
Readability fix
1 parent 11f610b commit 13614dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsmaplayermodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void QgsMapLayerModel::removeLayers( const QStringList &layerIds )
154154

155155
void QgsMapLayerModel::addLayers( const QList<QgsMapLayer *> &layers )
156156
{
157-
if ( layers.count( ) )
157+
if ( !layers.empty( ) )
158158
{
159159
int offset = 0;
160160
if ( mAllowEmpty )

0 commit comments

Comments
 (0)
Please sign in to comment.