fix: cpplint issues

This commit is contained in:
Tajmeet Singh 2020-06-23 19:29:11 +01:00
parent bcd5df725d
commit 95320b38a4

View File

@ -22,7 +22,7 @@ class Complex {
// The imaginary value of the complex number
double im;
public:
public:
/**
* Complex Constructor which initialises the complex number which takes two
* arguments.
@ -39,9 +39,7 @@ class Complex {
*/
explicit Complex(double x = 0.f, double y = 0.f, bool is_polar = false)
: re(is_polar ? x * std::cos(y) : x),
im(is_polar ? x * std::sin(y) : y) {
;
}
im(is_polar ? x * std::sin(y) : y) { ; }
/**
* Copy Constructor