Add clang-format (#1086)

Co-authored-by: mwilsnd <mwilsnd@gmail.com>
This commit is contained in:
Bart Louwers
2023-05-01 16:57:37 +02:00
committed by GitHub
parent 403a12bd1b
commit 71f6da2722
1018 changed files with 27876 additions and 25862 deletions

View File

@@ -8,34 +8,29 @@ using namespace mbgl;
class StubGeometryTileFeature : public GeometryTileFeature {
public:
StubGeometryTileFeature(PropertyMap properties_)
: properties(std::move(properties_)) {
}
: properties(std::move(properties_)) {}
StubGeometryTileFeature(FeatureIdentifier id_, FeatureType type_, GeometryCollection geometry_, PropertyMap properties_)
StubGeometryTileFeature(FeatureIdentifier id_,
FeatureType type_,
GeometryCollection geometry_,
PropertyMap properties_)
: properties(std::move(properties_)),
id(std::move(id_)),
type(type_),
geometry(std::move(geometry_)) {
}
geometry(std::move(geometry_)) {}
PropertyMap properties;
FeatureIdentifier id;
FeatureType type = FeatureType::Point;
GeometryCollection geometry;
FeatureType getType() const override {
return type;
}
FeatureType getType() const override { return type; }
FeatureIdentifier getID() const override {
return id;
}
FeatureIdentifier getID() const override { return id; }
std::optional<Value> getValue(const std::string& key) const override {
return properties.count(key) ? properties.at(key) : std::optional<Value>();
}
const GeometryCollection& getGeometries() const override {
return geometry;
}
const GeometryCollection& getGeometries() const override { return geometry; }
};