[Gridflow-cvs] [svn] commit: r4234 - in /trunk: base/flow_objects.c gridflow.h

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sat Oct 17 20:08:19 EDT 2009


Author: matju
Date: Sat Oct 17 20:08:18 2009
New Revision: 4234

Log:
ostream<<t_atom& now takes const on the right

Modified:
    trunk/base/flow_objects.c
    trunk/gridflow.h

Modified: trunk/base/flow_objects.c
==============================================================================
--- trunk/base/flow_objects.c (original)
+++ trunk/base/flow_objects.c Sat Oct 17 20:08:18 2009
@@ -2508,7 +2508,7 @@
 	\decl 0 grid(...);
 	\decl void anything (...);
 };
-std::ostream &operator << (std::ostream &self, t_atom &a) {
+std::ostream &operator << (std::ostream &self, const t_atom &a) {
 	switch (a.a_type) {
 		case A_FLOAT:   self << a.a_float; break;
 		case A_SYMBOL:  self << a.a_symbol->s_name; break; // i would rather show backslashes here...

Modified: trunk/gridflow.h
==============================================================================
--- trunk/gridflow.h (original)
+++ trunk/gridflow.h Sat Oct 17 20:08:18 2009
@@ -905,6 +905,6 @@
     return n;
 }
 
-std::ostream &operator << (std::ostream &self, t_atom &a);
+std::ostream &operator << (std::ostream &self, const t_atom &a);
 
 #endif // __GF_GRID_H



More information about the Gridflow-cvs mailing list