Merge pull request #3452 from Beep6581/cppcheck

merge fixes for a lot of issues reported by Cppcheck
This commit is contained in:
Ingo Weyrich
2016-10-09 22:55:31 +02:00
committed by GitHub
114 changed files with 611 additions and 1777 deletions

View File

@@ -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);
@@ -69,7 +69,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);