Fix "return reference to temporary"

This commit is contained in:
Matthias Kuhn 2015-06-15 10:11:45 +02:00
parent 8c96454f4b
commit 8fbee12106
3 changed files with 3 additions and 3 deletions

View File

@ -301,7 +301,7 @@ class QgsVectorLayer : QgsMapLayer
/** Removes a vector layer join */
void removeJoin( const QString& joinLayerId );
const QList< QgsVectorJoinInfo >& vectorJoins() const;
const QList< QgsVectorJoinInfo > vectorJoins() const;
/**
* Add a new field which is calculated by the expression specified

View File

@ -2872,7 +2872,7 @@ void QgsVectorLayer::removeJoin( const QString& joinLayerId )
mJoinBuffer->removeJoin( joinLayerId );
}
const QList< QgsVectorJoinInfo >& QgsVectorLayer::vectorJoins() const
const QList< QgsVectorJoinInfo > QgsVectorLayer::vectorJoins() const
{
if ( mJoinBuffer )
return mJoinBuffer->vectorJoins();

View File

@ -793,7 +793,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
/** Removes a vector layer join */
void removeJoin( const QString& joinLayerId );
const QList< QgsVectorJoinInfo >& vectorJoins() const;
const QList<QgsVectorJoinInfo> vectorJoins() const;
/**
* Add a new field which is calculated by the expression specified