Skip to content

Commit c9fa976

Browse files
committed
Use =delete to remove default functions
Via clang-tidy modernize-use-equals-delete
1 parent d9ebd3b commit c9fa976

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/core/geometry/qgsgeos.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ class GEOSInit
9797

9898
private:
9999

100-
GEOSInit( const GEOSInit &rh );
101-
GEOSInit &operator=( const GEOSInit &rh );
100+
GEOSInit( const GEOSInit &rh ) = delete;
101+
GEOSInit &operator=( const GEOSInit &rh ) = delete;
102102
};
103103

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

129129
private:
130-
GEOSGeomScopedPtr( const GEOSGeomScopedPtr &rh );
131-
GEOSGeomScopedPtr &operator=( const GEOSGeomScopedPtr &rh );
130+
GEOSGeomScopedPtr( const GEOSGeomScopedPtr &rh ) = delete;
131+
GEOSGeomScopedPtr &operator=( const GEOSGeomScopedPtr &rh ) = delete;
132132
};
133133

134134
QgsGeos::QgsGeos( const QgsAbstractGeometry *geometry, double precision )

src/core/qgsspatialindex.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class QgsSpatialIndexData : public QSharedData
226226

227227
private:
228228

229-
QgsSpatialIndexData &operator=( const QgsSpatialIndexData &rh );
229+
QgsSpatialIndexData &operator=( const QgsSpatialIndexData &rh ) = delete;
230230
};
231231

232232
// -------------------------------------------------------------------------

0 commit comments

Comments
 (0)