Skip to content

Commit

Permalink
QgsRubberBand3D: 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 ff66127 commit 34bfa8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/3d/qgsrubberband3d.h
Expand Up @@ -95,6 +95,10 @@ class _3D_EXPORT QgsRubberBand3D
Qt3DRender::QAttribute *mPositionAttribute = nullptr;
Qt3DRender::QAttribute *mIndexAttribute = nullptr;
QgsLineMaterial *mLineMaterial = nullptr;

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

/// @endcond
Expand Down

0 comments on commit 34bfa8f

Please sign in to comment.