Skip to content
Permalink
Browse files
QgsAppMapTools: disable copying as we have pointer members
  • Loading branch information
rouault authored and nyalldawson committed Jul 22, 2021
1 parent a02ed45 commit 210773398564a9ea6dc0ddf729e5833018027450
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/maptools/qgsappmaptools.h
@@ -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.