From d421a652e4bf737cc458039988627fbad1679621 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 2 Feb 2009 15:29:01 +0000 Subject: [PATCH] fixed compile warning in util/Color for return value of operator+= and -= git-svn-id: svn://anubis/fart/trunk@77 7f9b0f55-74a9-4bce-be96-3c2cd072584d --- util/Color.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/Color.cc b/util/Color.cc index b58a6fe..fc99dc3 100644 --- a/util/Color.cc +++ b/util/Color.cc @@ -43,6 +43,7 @@ Color & Color::operator+=(const Color & other) r += other.r; g += other.g; b += other.b; + return *this; } Color & Color::operator-=(const Color & other) @@ -50,6 +51,7 @@ Color & Color::operator-=(const Color & other) r += other.r; g += other.g; b += other.b; + return *this; } Color operator+(const Color & c1, const Color & c2)