@@ -39,7 +39,7 @@ namespace gdal
39
39
/* *
40
40
* Destroys an OGR data \a source, using the correct gdal calls.
41
41
*/
42
- void CORE_EXPORT operator ()( void * source );
42
+ void CORE_EXPORT operator ()( OGRDataSourceH source );
43
43
44
44
};
45
45
@@ -52,7 +52,7 @@ namespace gdal
52
52
/* *
53
53
* Destroys an OGR \a geometry, using the correct gdal calls.
54
54
*/
55
- void CORE_EXPORT operator ()( void * geometry );
55
+ void CORE_EXPORT operator ()( OGRGeometryH geometry );
56
56
57
57
};
58
58
@@ -65,7 +65,7 @@ namespace gdal
65
65
/* *
66
66
* Destroys an OGR field \a definition, using the correct gdal calls.
67
67
*/
68
- void CORE_EXPORT operator ()( void * definition );
68
+ void CORE_EXPORT operator ()( OGRFieldDefnH definition );
69
69
70
70
};
71
71
@@ -78,7 +78,7 @@ namespace gdal
78
78
/* *
79
79
* Destroys an OGR \a feature, using the correct gdal calls.
80
80
*/
81
- void CORE_EXPORT operator ()( void * feature );
81
+ void CORE_EXPORT operator ()( OGRFeatureH feature );
82
82
83
83
};
84
84
@@ -91,7 +91,7 @@ namespace gdal
91
91
/* *
92
92
* Destroys an gdal \a dataset, using the correct gdal calls.
93
93
*/
94
- void CORE_EXPORT operator ()( void *dataset );
94
+ void CORE_EXPORT operator ()( GDALDatasetH datasource );
95
95
96
96
};
97
97
@@ -111,27 +111,27 @@ namespace gdal
111
111
/* *
112
112
* Scoped OGR data source.
113
113
*/
114
- using ogr_datasource_unique_ptr = std::unique_ptr< void , OGRDataSourceDeleter>;
114
+ using ogr_datasource_unique_ptr = std::unique_ptr< std::remove_pointer<OGRDataSourceH>::type , OGRDataSourceDeleter >;
115
115
116
116
/* *
117
117
* Scoped OGR geometry.
118
118
*/
119
- using ogr_geometry_unique_ptr = std::unique_ptr< void , OGRGeometryDeleter>;
119
+ using ogr_geometry_unique_ptr = std::unique_ptr< std::remove_pointer<OGRGeometryH>::type , OGRGeometryDeleter >;
120
120
121
121
/* *
122
122
* Scoped OGR field definition.
123
123
*/
124
- using ogr_field_def_unique_ptr = std::unique_ptr< void , OGRFldDeleter >;
124
+ using ogr_field_def_unique_ptr = std::unique_ptr< std::remove_pointer<OGRFieldDefnH>::type , OGRFldDeleter >;
125
125
126
126
/* *
127
127
* Scoped OGR feature.
128
128
*/
129
- using ogr_feature_unique_ptr = std::unique_ptr< void , OGRFeatureDeleter >;
129
+ using ogr_feature_unique_ptr = std::unique_ptr< std::remove_pointer<OGRFeatureH>::type , OGRFeatureDeleter >;
130
130
131
131
/* *
132
132
* Scoped GDAL dataset.
133
133
*/
134
- using dataset_unique_ptr = std::unique_ptr< void , GDALDatasetCloser >;
134
+ using dataset_unique_ptr = std::unique_ptr< std::remove_pointer<GDALDatasetH>::type , GDALDatasetCloser >;
135
135
136
136
/* *
137
137
* Performs a fast close of an unwanted GDAL dataset handle by deleting the underlying
0 commit comments