mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Use isEmpty() rather than size() to check for empty lists
This commit is contained in:
parent
44289084e9
commit
2fb8695dbe
@ -456,7 +456,7 @@ void QgsSQLComposerDialog::getFunctionList( const QList<Function>& list,
|
|||||||
listApi << f.name;
|
listApi << f.name;
|
||||||
QString entryText( f.name );
|
QString entryText( f.name );
|
||||||
entryText += "(";
|
entryText += "(";
|
||||||
if ( f.argumentList.size() )
|
if ( !f.argumentList.isEmpty() )
|
||||||
{
|
{
|
||||||
for ( int i = 0;i < f.argumentList.size();i++ )
|
for ( int i = 0;i < f.argumentList.size();i++ )
|
||||||
{
|
{
|
||||||
|
@ -1162,7 +1162,7 @@ QgsGmlStreamingParser* QgsWFSSharedData::createParser()
|
|||||||
axisOrientationLogic = QgsGmlStreamingParser::Ignore_EPSG;
|
axisOrientationLogic = QgsGmlStreamingParser::Ignore_EPSG;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( mLayerPropertiesList.size() )
|
if ( !mLayerPropertiesList.isEmpty() )
|
||||||
{
|
{
|
||||||
QList< QgsGmlStreamingParser::LayerProperties > layerPropertiesList;
|
QList< QgsGmlStreamingParser::LayerProperties > layerPropertiesList;
|
||||||
Q_FOREACH ( QgsOgcUtils::LayerProperties layerProperties, mLayerPropertiesList )
|
Q_FOREACH ( QgsOgcUtils::LayerProperties layerProperties, mLayerPropertiesList )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user