File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ class QgsProcessingAlgorithm
38
38
39
39
virtual ~QgsProcessingAlgorithm();
40
40
41
+ // QgsProcessingAlgorithm &operator=( const QgsProcessingAlgorithm &other ) = delete;
42
+
41
43
virtual QString name() const = 0;
42
44
%Docstring
43
45
Returns the algorithm name, used for identifying the algorithm. This string
@@ -91,6 +93,8 @@ class QgsProcessingAlgorithm
91
93
Returns the provider to which this algorithm belongs.
92
94
%End
93
95
96
+ private:
97
+ QgsProcessingAlgorithm( const QgsProcessingAlgorithm &other );
94
98
};
95
99
QFlags<QgsProcessingAlgorithm::Flag> operator|(QgsProcessingAlgorithm::Flag f1, QFlags<QgsProcessingAlgorithm::Flag> f2);
96
100
Original file line number Diff line number Diff line change @@ -52,6 +52,11 @@ class CORE_EXPORT QgsProcessingAlgorithm
52
52
53
53
virtual ~QgsProcessingAlgorithm () = default ;
54
54
55
+ // ! Algorithms cannot be copied
56
+ QgsProcessingAlgorithm ( const QgsProcessingAlgorithm &other ) = delete ;
57
+ // ! Algorithms cannot be copied
58
+ QgsProcessingAlgorithm &operator =( const QgsProcessingAlgorithm &other ) = delete ;
59
+
55
60
/* *
56
61
* Returns the algorithm name, used for identifying the algorithm. This string
57
62
* should be fixed for the algorithm, and must not be localised. The name should
@@ -118,6 +123,10 @@ class CORE_EXPORT QgsProcessingAlgorithm
118
123
friend class QgsProcessingProvider ;
119
124
friend class TestQgsProcessing ;
120
125
126
+ #ifdef SIP_RUN
127
+ QgsProcessingAlgorithm ( const QgsProcessingAlgorithm &other );
128
+ #endif
129
+
121
130
};
122
131
Q_DECLARE_OPERATORS_FOR_FLAGS ( QgsProcessingAlgorithm::Flags )
123
132
You can’t perform that action at this time.
0 commit comments