[core] Fix google-explicit-constructor errors
As reported by clang-tidy-8.
This commit is contained in:
@@ -70,8 +70,7 @@ const GeometryCollection& AnnotationTileFeature::getGeometries() const {
|
||||
|
||||
class AnnotationTileLayerData {
|
||||
public:
|
||||
AnnotationTileLayerData(std::string name_) : name(std::move(name_)) {
|
||||
}
|
||||
explicit AnnotationTileLayerData(std::string name_) : name(std::move(name_)) {}
|
||||
|
||||
const std::string name;
|
||||
std::vector<std::shared_ptr<const AnnotationTileFeatureData>> features;
|
||||
|
||||
@@ -33,7 +33,7 @@ bool operator==(const VarargsType& lhs, const VarargsType& rhs) {
|
||||
template <typename T>
|
||||
struct Varargs : std::vector<T> {
|
||||
template <class... Args>
|
||||
Varargs(Args&&... args) : std::vector<T>(std::forward<Args>(args)...) {}
|
||||
explicit Varargs(Args&&... args) : std::vector<T>(std::forward<Args>(args)...) {}
|
||||
};
|
||||
|
||||
namespace detail {
|
||||
|
||||
@@ -12,7 +12,7 @@ public:
|
||||
const Feature& feature;
|
||||
mutable optional<GeometryCollection> geometry;
|
||||
|
||||
GeoJSONFeature(const Feature& feature_) : feature(feature_) {}
|
||||
explicit GeoJSONFeature(const Feature& feature_) : feature(feature_) {}
|
||||
GeoJSONFeature(const Feature& feature_, const CanonicalTileID& canonical) : feature(feature_) {
|
||||
geometry = convertGeometry(feature.geometry, canonical);
|
||||
// https://github.com/mapbox/geojson-vt-cpp/issues/44
|
||||
|
||||
Reference in New Issue
Block a user