Skip to content

Commit

Permalink
QgsAppMapTools: disable copying as we have pointer members
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault authored and nyalldawson committed Jul 22, 2021
1 parent a02ed45 commit 2107733
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/maptools/qgsappmaptools.h
Expand Up @@ -148,6 +148,9 @@ class QgsAppMapTools
QHash< Tool, QPointer< QgsMapTool > > mTools;
QgsStreamDigitizingSettingsAction *mStreamDigitizingSettingsAction = nullptr;

// Disable copying as we have pointer members.
QgsAppMapTools( const QgsAppMapTools & ) = delete;
QgsAppMapTools &operator= ( const QgsAppMapTools & ) = delete;
};

#endif // QGSAPPMAPTOOLS_H

0 comments on commit 2107733

Please sign in to comment.