More explicit constructors

This commit is contained in:
Jan Möbius
2023-08-23 10:06:04 +02:00
parent 45d158717a
commit e7406f22fc
3 changed files with 3 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ class ModAspectRatioT: public ModBaseT<MeshT> {
typedef typename Mesh::Point Point;
/// constructor
ModAspectRatioT(MeshT& _mesh, float _min_aspect = 5.0, bool _is_binary =
explicit ModAspectRatioT(MeshT& _mesh, float _min_aspect = 5.0, bool _is_binary =
true) :
Base(_mesh, _is_binary), mesh_(Base::mesh()), min_aspect_(
1.f / _min_aspect) {

View File

@@ -79,7 +79,7 @@ class ModEdgeLengthT: public ModBaseT<MeshT> {
;
/// Constructor
ModEdgeLengthT(MeshT& _mesh, float _edge_length = FLT_MAX,
explicit ModEdgeLengthT(MeshT& _mesh, float _edge_length = FLT_MAX,
bool _is_binary = true);
/// get edge_length

View File

@@ -87,7 +87,7 @@ class ModHausdorffT: public ModBaseT<MeshT> {
typedef std::vector<Point> Points;
/// Constructor
ModHausdorffT(MeshT& _mesh, Scalar _error_tolerance = FLT_MAX) :
explicit ModHausdorffT(MeshT& _mesh, Scalar _error_tolerance = FLT_MAX) :
Base(_mesh, true), mesh_(Base::mesh()), tolerance_(_error_tolerance) {
mesh_.add_property(points_);
}