Skip to content

Commit

Permalink
Fix "return reference to temporary"
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 15, 2015
1 parent 8c96454 commit 8fbee12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/core/qgsvectorlayer.sip
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.h
Expand Up @@ -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
Expand Down

0 comments on commit 8fbee12

Please sign in to comment.