Mod: Single arg ctors must be explicit

This commit is contained in:
berniev
2022-08-15 19:28:04 +10:00
committed by wwmayer
parent 3877fc62c3
commit 180edfa3cc
263 changed files with 473 additions and 473 deletions

View File

@@ -71,7 +71,7 @@ struct SketchAnalysis::VertexIds {
struct SketchAnalysis::Vertex_Less
{
Vertex_Less(double tolerance) : tolerance(tolerance){}
explicit Vertex_Less(double tolerance) : tolerance(tolerance){}
bool operator()(const VertexIds& x,
const VertexIds& y) const
{
@@ -98,7 +98,7 @@ struct SketchAnalysis::VertexID_Less
struct SketchAnalysis::Vertex_EqualTo
{
Vertex_EqualTo(double tolerance) : tolerance(tolerance){}
explicit Vertex_EqualTo(double tolerance) : tolerance(tolerance){}
bool operator()(const VertexIds& x,
const VertexIds& y) const
{
@@ -122,7 +122,7 @@ struct SketchAnalysis::EdgeIds {
struct SketchAnalysis::Edge_Less
{
Edge_Less(double tolerance) : tolerance(tolerance){}
explicit Edge_Less(double tolerance) : tolerance(tolerance){}
bool operator()(const EdgeIds& x,
const EdgeIds& y) const
{
@@ -136,7 +136,7 @@ private:
struct SketchAnalysis::Edge_EqualTo
{
Edge_EqualTo(double tolerance) : tolerance(tolerance){}
explicit Edge_EqualTo(double tolerance) : tolerance(tolerance){}
bool operator()(const EdgeIds& x,
const EdgeIds& y) const
{