Skip to content
Permalink
Browse files

Fix clazy warnings

  • Loading branch information
nyalldawson committed Feb 12, 2021
1 parent 0f49cb9 commit cf43c60717c4487723896c045912c9c799c9cbf8
Showing with 4 additions and 4 deletions.
  1. +1 −1 python/core/auto_generated/qgsrelation.sip.in
  2. +2 −2 src/core/qgsrelation.cpp
  3. +1 −1 src/core/qgsrelation.h
@@ -321,7 +321,7 @@ Will be called internally whenever a member is changed.
.. versionadded:: 3.6
%End

void setPolymorphicRelationId( const QString polymorphicRelationId );
void setPolymorphicRelationId( const QString &polymorphicRelationId );
%Docstring
Sets the parent polymorphic relation id.

@@ -317,7 +317,7 @@ QList<QgsRelation::FieldPair> QgsRelation::fieldPairs() const
QgsAttributeList QgsRelation::referencedFields() const
{
QgsAttributeList attrs;

attrs.reserve( d->mFieldPairs.size() );
for ( const FieldPair &pair : qgis::as_const( d->mFieldPairs ) )
{
attrs << d->mReferencedLayer->fields().lookupField( pair.second );
@@ -421,7 +421,7 @@ void QgsRelation::updateRelationStatus()
}
}

void QgsRelation::setPolymorphicRelationId( const QString polymorphicRelationId )
void QgsRelation::setPolymorphicRelationId( const QString &polymorphicRelationId )
{
d.detach();
d->mPolymorphicRelationId = polymorphicRelationId;
@@ -398,7 +398,7 @@ class CORE_EXPORT QgsRelation
* Sets the parent polymorphic relation id.
* \since QGIS 3.18
*/
void setPolymorphicRelationId( const QString polymorphicRelationId );
void setPolymorphicRelationId( const QString &polymorphicRelationId );

/**
* Returns the parent polymorphic relation id. If the relation is a normal relation, a null string is returned.

0 comments on commit cf43c60

Please sign in to comment.