Fix some warnings

This commit is contained in:
Nicolas Werner 2020-03-01 21:33:42 +01:00
parent 08c1973e85
commit 139e7e2978

View file

@ -155,7 +155,6 @@ struct Color
b /= scale; b /= scale;
return *this; return *this;
} }
friend Color operator/(Color lhs, float rhs) { return (lhs /= rhs); }
Color &operator+=(const Color &rhs) Color &operator+=(const Color &rhs)
{ {
r += rhs.r; r += rhs.r;
@ -163,7 +162,6 @@ struct Color
b += rhs.b; b += rhs.b;
return *this; return *this;
} }
friend Color operator+(Color lhs, const Color &rhs) { return (lhs += rhs); }
}; };
Color Color