Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 c9fa976
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/core/geometry/qgsgeos.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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 )
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsspatialindex.cpp
Expand Up @@ -226,7 +226,7 @@ class QgsSpatialIndexData : public QSharedData

private:

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

// -------------------------------------------------------------------------
Expand Down

0 comments on commit c9fa976

Please sign in to comment.