Skip to content
Permalink
Browse files
Add copy constructor dox
  • Loading branch information
m-kuhn committed Aug 24, 2018
1 parent 79f766a commit 2a31d3861391bbe3cf40a5cf1d1625172f438e56
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
@@ -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
@@ -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 );

/**

0 comments on commit 2a31d38

Please sign in to comment.