mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Fix coverity unchecked return value warning, improve docs
This commit is contained in:
parent
cadf4ae455
commit
53ceb20893
@ -170,7 +170,8 @@ which is referenced by the provided feature.
|
|||||||
|
|
||||||
:param feature: A feature from the referencing (child) layer
|
: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
|
%End
|
||||||
|
|
||||||
QString name() const;
|
QString name() const;
|
||||||
|
@ -170,7 +170,8 @@ which is referenced by the provided feature.
|
|||||||
|
|
||||||
:param feature: A feature from the referencing (child) layer
|
: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
|
%End
|
||||||
|
|
||||||
QString name() const;
|
QString name() const;
|
||||||
|
@ -276,7 +276,7 @@ QgsFeature QgsRelation::getReferencedFeature( const QgsFeature &feature ) const
|
|||||||
QgsFeatureRequest request = getReferencedFeatureRequest( feature );
|
QgsFeatureRequest request = getReferencedFeatureRequest( feature );
|
||||||
|
|
||||||
QgsFeature f;
|
QgsFeature f;
|
||||||
d->mReferencedLayer->getFeatures( request ).nextFeature( f );
|
( void )d->mReferencedLayer->getFeatures( request ).nextFeature( f );
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -233,7 +233,8 @@ class CORE_EXPORT QgsRelation
|
|||||||
*
|
*
|
||||||
* \param feature A feature from the referencing (child) layer
|
* \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;
|
QgsFeature getReferencedFeature( const QgsFeature &feature ) const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user