fix: cpplint issues

This commit is contained in:
Tajmeet Singh
2020-06-23 19:32:05 +01:00
parent 95320b38a4
commit 9048e19184

View File

@@ -39,13 +39,13 @@ 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
* @param other The other number to equate our number to.
*/
Complex(const Complex &other) : re(other.real()), im(other.imag()) { ; }
Complex(const Complex &other) : re(other.real()), im(other.imag()) {}
/**
* Member function (getter) to access the class' re value.