Skip to content
Permalink
Browse files
QgsRubberBand3D: disable copying as we have pointer members
  • Loading branch information
rouault authored and nyalldawson committed Jul 22, 2021
1 parent ff66127 commit 34bfa8fc9c2ffcd55d4620dcf8f6ec62d5346735
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/3d/qgsrubberband3d.h
@@ -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

0 comments on commit 34bfa8f

Please sign in to comment.