Skip to content

Commit 8fbee12

Browse files
committed
Fix "return reference to temporary"
1 parent 8c96454 commit 8fbee12

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/core/qgsvectorlayer.sip

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ class QgsVectorLayer : QgsMapLayer
301301
/** Removes a vector layer join */
302302
void removeJoin( const QString& joinLayerId );
303303

304-
const QList< QgsVectorJoinInfo >& vectorJoins() const;
304+
const QList< QgsVectorJoinInfo > vectorJoins() const;
305305

306306
/**
307307
* Add a new field which is calculated by the expression specified

src/core/qgsvectorlayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@ void QgsVectorLayer::removeJoin( const QString& joinLayerId )
28722872
mJoinBuffer->removeJoin( joinLayerId );
28732873
}
28742874

2875-
const QList< QgsVectorJoinInfo >& QgsVectorLayer::vectorJoins() const
2875+
const QList< QgsVectorJoinInfo > QgsVectorLayer::vectorJoins() const
28762876
{
28772877
if ( mJoinBuffer )
28782878
return mJoinBuffer->vectorJoins();

src/core/qgsvectorlayer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
793793
/** Removes a vector layer join */
794794
void removeJoin( const QString& joinLayerId );
795795

796-
const QList< QgsVectorJoinInfo >& vectorJoins() const;
796+
const QList<QgsVectorJoinInfo> vectorJoins() const;
797797

798798
/**
799799
* Add a new field which is calculated by the expression specified

0 commit comments

Comments
 (0)