Skip to content
Permalink
Browse files

Use =delete to remove default functions

Via clang-tidy modernize-use-equals-delete
  • Loading branch information
nyalldawson committed Sep 11, 2017
1 parent d9ebd3b commit c9fa9765243a2ad46c895d13a0ea5775730836d1
Showing with 5 additions and 5 deletions.
  1. +4 −4 src/core/geometry/qgsgeos.cpp
  2. +1 −1 src/core/qgsspatialindex.cpp
@@ -97,8 +97,8 @@ class GEOSInit

private:

GEOSInit( const GEOSInit &rh );
GEOSInit &operator=( const GEOSInit &rh );
GEOSInit( const GEOSInit &rh ) = delete;
GEOSInit &operator=( const GEOSInit &rh ) = delete;
};

static GEOSInit geosinit;
@@ -127,8 +127,8 @@ class GEOSGeomScopedPtr
GEOSGeometry *mGeom = nullptr;

private:
GEOSGeomScopedPtr( const GEOSGeomScopedPtr &rh );
GEOSGeomScopedPtr &operator=( const GEOSGeomScopedPtr &rh );
GEOSGeomScopedPtr( const GEOSGeomScopedPtr &rh ) = delete;
GEOSGeomScopedPtr &operator=( const GEOSGeomScopedPtr &rh ) = delete;
};

QgsGeos::QgsGeos( const QgsAbstractGeometry *geometry, double precision )
@@ -226,7 +226,7 @@ class QgsSpatialIndexData : public QSharedData

private:

QgsSpatialIndexData &operator=( const QgsSpatialIndexData &rh );
QgsSpatialIndexData &operator=( const QgsSpatialIndexData &rh ) = delete;
};

// -------------------------------------------------------------------------

0 comments on commit c9fa976

Please sign in to comment.
You can’t perform that action at this time.