Mod: Single arg ctors must be explicit
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user