Skip to content

Commit

Permalink
Add copy constructor dox
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 24, 2018
1 parent 79f766a commit 2a31d38
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/core/auto_generated/qgsrelation.sip.in
Expand Up @@ -36,7 +36,14 @@ class QgsRelation
Default constructor. Creates an invalid relation.
%End
~QgsRelation();

QgsRelation( const QgsRelation &other );
%Docstring
Copies a relation.
This makes a shallow copy, relations are implicitly shared and only duplicated when the copy is
changed.
%End


static QgsRelation createFromXml( const QDomNode &node, QgsReadWriteContext &context );
%Docstring
Expand Down
12 changes: 12 additions & 0 deletions src/core/qgsrelation.h
Expand Up @@ -95,7 +95,19 @@ class CORE_EXPORT QgsRelation
*/
QgsRelation();
~QgsRelation();

/**
* Copies a relation.
* This makes a shallow copy, relations are implicitly shared and only duplicated when the copy is
* changed.
*/
QgsRelation( const QgsRelation &other );

/**
* Copies a relation.
* This makes a shallow copy, relations are implicitly shared and only duplicated when the copy is
* changed.
*/
QgsRelation &operator=( const QgsRelation &other );

/**
Expand Down

0 comments on commit 2a31d38

Please sign in to comment.