fixed ColorRgb attribute init order of struct

This commit is contained in:
ehriche 2015-05-06 01:03:05 +02:00
parent 897a1aade5
commit b89cd136a9

View file

@ -11,21 +11,21 @@ public:
ColorRgb() ColorRgb()
: r(0) : b(0)
, g(0) , g(0)
, b(0) { , r(0) {
} }
ColorRgb(T red, T green, T blue) ColorRgb(T red, T green, T blue)
: r(red) : b(blue)
, g(green) , g(green)
, b(blue) { , r(red) {
} }
ColorRgb(const ColorRgb<T> &x) ColorRgb(const ColorRgb<T> &x)
: r(x.r) : b(x.b)
, g(x.g) , g(x.g)
, b(x.b) { , r(x.r) {
} }
ColorRgb<int> operator *(int x) { ColorRgb<int> operator *(int x) {