Navigation Menu

Skip to content

Commit

Permalink
QgsProxyProgressTask cannot be copied -- fix cppcheck warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 12, 2023
1 parent ad11357 commit 04d9841
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/core/auto_generated/qgsproxyprogresstask.sip.in
Expand Up @@ -33,6 +33,7 @@ task manager.
Constructor for QgsProxyProgressTask, with the specified ``description``.
%End


void finalize( bool result );
%Docstring
Finalizes the task, with the specified ``result``.
Expand Down
5 changes: 5 additions & 0 deletions src/core/qgsproxyprogresstask.h
Expand Up @@ -45,6 +45,11 @@ class CORE_EXPORT QgsProxyProgressTask : public QgsTask
*/
QgsProxyProgressTask( const QString &description, bool canCancel = false );

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

/**
* Finalizes the task, with the specified \a result.
*
Expand Down

0 comments on commit 04d9841

Please sign in to comment.