[Avida-SVN] r2600 - development/source/viewer-coreGUI
brysonda at myxo.css.msu.edu
brysonda at myxo.css.msu.edu
Fri May 30 07:09:06 PDT 2008
Author: brysonda
Date: 2008-05-30 10:09:06 -0400 (Fri, 30 May 2008)
New Revision: 2600
Modified:
development/source/viewer-coreGUI/cColor.h
Log:
Fix to cColor to allow compilation in Visual Studio.
Modified: development/source/viewer-coreGUI/cColor.h
===================================================================
--- development/source/viewer-coreGUI/cColor.h 2008-05-30 03:53:41 UTC (rev 2599)
+++ development/source/viewer-coreGUI/cColor.h 2008-05-30 14:09:06 UTC (rev 2600)
@@ -43,7 +43,7 @@
: m_red((int) (r*255.0)), m_green((int) (g*255.0)), m_blue((int) (b*255.0)) { ; }
cColor(const cColor & _in) : m_red(_in.m_red), m_green(_in.m_green), m_blue(_in.m_blue) { ; }
- cColor & operator=(const cColor & _in) { m_red=_in.m_red; m_green=_in.m_green; m_blue=_in.m_blue; }
+ cColor& operator=(const cColor & _in) { m_red=_in.m_red; m_green=_in.m_green; m_blue=_in.m_blue; return *this; }
void Set(int r, int g, int b) { m_red = r; m_green = g; m_blue = b; }
void Set(double r, double g, double b) { Set( (int) (255 * r), (int) (255 * g), (int) (255 * b) ); }
More information about the Avida-cvs
mailing list