Cppcheck: Fix issues related to explicit constructors
This commit is contained in:
@@ -35,7 +35,7 @@ struct Coord
|
||||
Coord () = default;
|
||||
Coord (const int x, const int y);
|
||||
Coord (const Coord& other) = default;
|
||||
Coord (const PolarCoord& other);
|
||||
explicit Coord (const PolarCoord& other);
|
||||
|
||||
Coord& operator= (const Coord& other) = default;
|
||||
Coord& operator= (const PolarCoord& other);
|
||||
@@ -66,7 +66,7 @@ struct PolarCoord
|
||||
PolarCoord () = default;
|
||||
PolarCoord (const double radius, const double angle);
|
||||
PolarCoord (const PolarCoord& other) = default;
|
||||
PolarCoord (const Coord& other);
|
||||
explicit PolarCoord (const Coord& other);
|
||||
|
||||
PolarCoord& operator= (const PolarCoord& other) = default;
|
||||
PolarCoord& operator= (const Coord& other);
|
||||
|
Reference in New Issue
Block a user