Fix coverity unchecked return value warning, improve docs

This commit is contained in:
Nyall Dawson 2024-12-11 06:40:14 +10:00
parent cadf4ae455
commit 53ceb20893
No known key found for this signature in database
GPG Key ID: 4C61673F0BF197FC
4 changed files with 7 additions and 4 deletions

View File

@ -170,7 +170,8 @@ which is referenced by the provided feature.
:param feature: A feature from the referencing (child) layer
:return: A request the referenced feature
:return: The referenced (parent) feature, or an invalid feature if no matching feature
was found
%End
QString name() const;

View File

@ -170,7 +170,8 @@ which is referenced by the provided feature.
:param feature: A feature from the referencing (child) layer
:return: A request the referenced feature
:return: The referenced (parent) feature, or an invalid feature if no matching feature
was found
%End
QString name() const;

View File

@ -276,7 +276,7 @@ QgsFeature QgsRelation::getReferencedFeature( const QgsFeature &feature ) const
QgsFeatureRequest request = getReferencedFeatureRequest( feature );
QgsFeature f;
d->mReferencedLayer->getFeatures( request ).nextFeature( f );
( void )d->mReferencedLayer->getFeatures( request ).nextFeature( f );
return f;
}

View File

@ -233,7 +233,8 @@ class CORE_EXPORT QgsRelation
*
* \param feature A feature from the referencing (child) layer
*
* \returns A request the referenced feature
* \returns The referenced (parent) feature, or an invalid feature if no matching feature
* was found
*/
QgsFeature getReferencedFeature( const QgsFeature &feature ) const;