Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Use =delete to remove default functions
Via clang-tidy modernize-use-equals-delete
- Loading branch information
Showing
with
5 additions
and
5 deletions.
-
+4
−4
src/core/geometry/qgsgeos.cpp
-
+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; |
|
|
}; |
|
|
|
|
|
// ------------------------------------------------------------------------- |
|
|