Skip to content
Permalink
Browse files

Use isEmpty() rather than size() to check for empty lists

  • Loading branch information
nyalldawson committed Oct 24, 2016
1 parent 4428908 commit 2fb8695dbed387fd107ddd01d55487395e7c2cd7
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/gui/qgssqlcomposerdialog.cpp
  2. +1 −1 src/providers/wfs/qgswfsshareddata.cpp
@@ -456,7 +456,7 @@ void QgsSQLComposerDialog::getFunctionList( const QList<Function>& list,
listApi << f.name;
QString entryText( f.name );
entryText += "(";
if ( f.argumentList.size() )
if ( !f.argumentList.isEmpty() )
{
for ( int i = 0;i < f.argumentList.size();i++ )
{
@@ -1162,7 +1162,7 @@ QgsGmlStreamingParser* QgsWFSSharedData::createParser()
axisOrientationLogic = QgsGmlStreamingParser::Ignore_EPSG;
}

if ( mLayerPropertiesList.size() )
if ( !mLayerPropertiesList.isEmpty() )
{
QList< QgsGmlStreamingParser::LayerProperties > layerPropertiesList;
Q_FOREACH ( QgsOgcUtils::LayerProperties layerProperties, mLayerPropertiesList )

0 comments on commit 2fb8695

Please sign in to comment.
You can’t perform that action at this time.