diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-27 18:30:35 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-04-17 13:36:50 +0300 |
commit | c4cb026fa4d30b7d81c4a23613dc5d772b1708d0 (patch) | |
tree | 597f8f83e74942ac887032c1fb1efb46687b4a33 /src/mbgl | |
parent | dffe00feeade4d65d10deecdc196add14b791c11 (diff) | |
download | qtlocation-mapboxgl-c4cb026fa4d30b7d81c4a23613dc5d772b1708d0.tar.gz |
[core] Fix readability-redundant-member-init errors in header files
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl')
-rw-r--r-- | src/mbgl/map/map_impl.hpp | 2 | ||||
-rw-r--r-- | src/mbgl/renderer/property_evaluation_parameters.hpp | 2 | ||||
-rw-r--r-- | src/mbgl/style/sources/geojson_source_impl.hpp | 2 | ||||
-rw-r--r-- | src/mbgl/style/sources/image_source_impl.hpp | 2 | ||||
-rw-r--r-- | src/mbgl/tile/geometry_tile_data.hpp | 2 |
5 files changed, 6 insertions, 4 deletions
diff --git a/src/mbgl/map/map_impl.hpp b/src/mbgl/map/map_impl.hpp index 416662f9e5..022909c8d3 100644 --- a/src/mbgl/map/map_impl.hpp +++ b/src/mbgl/map/map_impl.hpp @@ -26,7 +26,7 @@ struct StillImageRequest { Map::StillImageCallback callback; }; -class Map::Impl : public style::Observer, public RendererObserver { +class Map::Impl final : public style::Observer, public RendererObserver { public: Impl(RendererFrontend&, MapObserver&, std::shared_ptr<FileSource>, const MapOptions&); ~Impl() final; diff --git a/src/mbgl/renderer/property_evaluation_parameters.hpp b/src/mbgl/renderer/property_evaluation_parameters.hpp index 59e96d7849..d6cbf9d159 100644 --- a/src/mbgl/renderer/property_evaluation_parameters.hpp +++ b/src/mbgl/renderer/property_evaluation_parameters.hpp @@ -17,7 +17,7 @@ public: explicit PropertyEvaluationParameters(float z_) : z(z_), now(Clock::time_point::max()), - zoomHistory(), + defaultFadeDuration(0) {} PropertyEvaluationParameters(ZoomHistory zoomHistory_, TimePoint now_, Duration defaultFadeDuration_) diff --git a/src/mbgl/style/sources/geojson_source_impl.hpp b/src/mbgl/style/sources/geojson_source_impl.hpp index 3b106e3c00..fd23ebdbe1 100644 --- a/src/mbgl/style/sources/geojson_source_impl.hpp +++ b/src/mbgl/style/sources/geojson_source_impl.hpp @@ -11,7 +11,7 @@ class CanonicalTileID; namespace style { -class GeoJSONSource::Impl : public Source::Impl { +class GeoJSONSource::Impl final : public Source::Impl { public: Impl(std::string id, Immutable<GeoJSONOptions>); Impl(const GeoJSONSource::Impl&, std::shared_ptr<GeoJSONData>); diff --git a/src/mbgl/style/sources/image_source_impl.hpp b/src/mbgl/style/sources/image_source_impl.hpp index d784464709..16ddcfda71 100644 --- a/src/mbgl/style/sources/image_source_impl.hpp +++ b/src/mbgl/style/sources/image_source_impl.hpp @@ -9,7 +9,7 @@ namespace mbgl { namespace style { -class ImageSource::Impl : public Source::Impl { +class ImageSource::Impl final : public Source::Impl { public: Impl(std::string id, std::array<LatLng, 4> coords); Impl(const Impl& other, std::array<LatLng, 4> coords); diff --git a/src/mbgl/tile/geometry_tile_data.hpp b/src/mbgl/tile/geometry_tile_data.hpp index fc0790db83..7d172e4942 100644 --- a/src/mbgl/tile/geometry_tile_data.hpp +++ b/src/mbgl/tile/geometry_tile_data.hpp @@ -25,6 +25,7 @@ public: template <class... Args> GeometryCoordinates(Args&&... args) : std::vector<GeometryCoordinate>(std::forward<Args>(args)...) {} GeometryCoordinates(std::initializer_list<GeometryCoordinate> args) : std::vector<GeometryCoordinate>(args) {} + GeometryCoordinates() = default; }; class GeometryCollection : public std::vector<GeometryCoordinates> { @@ -35,6 +36,7 @@ public: GeometryCollection(std::initializer_list<GeometryCoordinates> args) : std::vector<GeometryCoordinates>(args) {} GeometryCollection(GeometryCollection&&) = default; GeometryCollection& operator=(GeometryCollection&&) = default; + GeometryCollection() = default; GeometryCollection clone() const { return GeometryCollection(*this); } |