Skip to content
Permalink
Browse files
Don't try to deepcopy QgsProcessingAlgorithm class
  • Loading branch information
nyalldawson committed Apr 7, 2017
1 parent b3142a0 commit 950ed680bd4e07f48e837e1f8ae4aae4153d2c79
Showing with 13 additions and 0 deletions.
  1. +4 −0 python/core/processing/qgsprocessingalgorithm.sip
  2. +9 −0 src/core/processing/qgsprocessingalgorithm.h
@@ -38,6 +38,8 @@ class QgsProcessingAlgorithm

virtual ~QgsProcessingAlgorithm();

// QgsProcessingAlgorithm &operator=( const QgsProcessingAlgorithm &other ) = delete;

virtual QString name() const = 0;
%Docstring
Returns the algorithm name, used for identifying the algorithm. This string
@@ -91,6 +93,8 @@ class QgsProcessingAlgorithm
Returns the provider to which this algorithm belongs.
%End

private:
QgsProcessingAlgorithm( const QgsProcessingAlgorithm &other );
};
QFlags<QgsProcessingAlgorithm::Flag> operator|(QgsProcessingAlgorithm::Flag f1, QFlags<QgsProcessingAlgorithm::Flag> f2);

@@ -52,6 +52,11 @@ class CORE_EXPORT QgsProcessingAlgorithm

virtual ~QgsProcessingAlgorithm() = default;

//! Algorithms cannot be copied
QgsProcessingAlgorithm( const QgsProcessingAlgorithm &other ) = delete;
//! Algorithms cannot be copied
QgsProcessingAlgorithm &operator=( const QgsProcessingAlgorithm &other ) = delete;

/**
* Returns the algorithm name, used for identifying the algorithm. This string
* should be fixed for the algorithm, and must not be localised. The name should
@@ -118,6 +123,10 @@ class CORE_EXPORT QgsProcessingAlgorithm
friend class QgsProcessingProvider;
friend class TestQgsProcessing;

#ifdef SIP_RUN
QgsProcessingAlgorithm( const QgsProcessingAlgorithm &other );
#endif

};
Q_DECLARE_OPERATORS_FOR_FLAGS( QgsProcessingAlgorithm::Flags )

0 comments on commit 950ed68

Please sign in to comment.