Skip to content

Commit 2fb8695

Browse files
committed
Use isEmpty() rather than size() to check for empty lists
1 parent 4428908 commit 2fb8695

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/gui/qgssqlcomposerdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ void QgsSQLComposerDialog::getFunctionList( const QList<Function>& list,
456456
listApi << f.name;
457457
QString entryText( f.name );
458458
entryText += "(";
459-
if ( f.argumentList.size() )
459+
if ( !f.argumentList.isEmpty() )
460460
{
461461
for ( int i = 0;i < f.argumentList.size();i++ )
462462
{

src/providers/wfs/qgswfsshareddata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ QgsGmlStreamingParser* QgsWFSSharedData::createParser()
11621162
axisOrientationLogic = QgsGmlStreamingParser::Ignore_EPSG;
11631163
}
11641164

1165-
if ( mLayerPropertiesList.size() )
1165+
if ( !mLayerPropertiesList.isEmpty() )
11661166
{
11671167
QList< QgsGmlStreamingParser::LayerProperties > layerPropertiesList;
11681168
Q_FOREACH ( QgsOgcUtils::LayerProperties layerProperties, mLayerPropertiesList )

0 commit comments

Comments
 (0)