mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
mark constructor function call as explicit
This commit is contained in:
parent
5c7db7aba3
commit
c43e76286d
@ -20,7 +20,7 @@ struct Point {
|
||||
* \param [in] a absicca (default = 0.0)
|
||||
* \param [in] b ordinate (default = 0.0)
|
||||
*/
|
||||
Point(double a = 0.f, double b = 0.f) {
|
||||
explicit Point(double a = 0.f, double b = 0.f) {
|
||||
x = a;
|
||||
y = b;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user