Skip to content

Commit

Permalink
no need to check for validity
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 24, 2020
1 parent 756b293 commit 72fa037
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/qgsfeaturefiltermodel.cpp
Expand Up @@ -96,7 +96,7 @@ bool QgsFeatureFilterModel::identifierIsNull( const QVariant &identifier ) const
const QVariantList values = identifier.toList();
for ( const QVariant &value : values )
{
if ( !value.isNull() && value.isValid() )
if ( !value.isNull() )
{
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsrelationreferencewidget.cpp
Expand Up @@ -54,7 +54,7 @@ bool qVariantListIsNull( const QVariantList &list )

for ( int i = 0; i < list.size(); ++i )
{
if ( !list.at( i ).isNull() && list.at( i ).isValid() )
if ( !list.at( i ).isNull() )
return false;
}
return true;
Expand Down

0 comments on commit 72fa037

Please sign in to comment.