Cppcheck: add explicit to some constructors in region.h

sql-rework
Tomasz Golinski 2020-07-06 13:59:11 +02:00
rodzic cc8415d258
commit 750d620223
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -27,7 +27,7 @@ private:
bg::model::polygon<boost::geometry::model::d2::point_xy<double>> contour;
BoundingBox bbox;
public:
ContourData(BoundingBox bbox);
explicit ContourData(BoundingBox bbox);
bool within(Position p);
void add_point(Position p);
};
@ -53,6 +53,6 @@ class Country {
private:
std::vector<Region*> regions;
public:
Country(const std::vector<std::filesystem::path>& jsons);
explicit Country(const std::vector<std::filesystem::path>& jsons);
void locate(Cache& c);
};