pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r3820 - trunk/pingus/src/math


From: grumbel at BerliOS
Subject: [Pingus-CVS] r3820 - trunk/pingus/src/math
Date: Mon, 14 Jul 2008 16:11:54 +0200

Author: grumbel
Date: 2008-07-14 16:11:53 +0200 (Mon, 14 Jul 2008)
New Revision: 3820

Modified:
   trunk/pingus/src/math/rect.cpp
   trunk/pingus/src/math/size.cpp
   trunk/pingus/src/math/vector2f.cpp
   trunk/pingus/src/math/vector2i.cpp
   trunk/pingus/src/math/vector3f.cpp
Log:
Changed operator<< output to look like constructor call

Modified: trunk/pingus/src/math/rect.cpp
===================================================================
--- trunk/pingus/src/math/rect.cpp      2008-07-14 10:06:33 UTC (rev 3819)
+++ trunk/pingus/src/math/rect.cpp      2008-07-14 14:11:53 UTC (rev 3820)
@@ -62,7 +62,7 @@
 
 std::ostream& operator<<(std::ostream& s, const Rect& rect)
 {
-  return s << "rect(" << rect.left << ", " << rect.top << ", "
+  return s << "Rect(" << rect.left << ", " << rect.top << ", "
            << rect.right << ", " << rect.bottom << ")";
 }
 

Modified: trunk/pingus/src/math/size.cpp
===================================================================
--- trunk/pingus/src/math/size.cpp      2008-07-14 10:06:33 UTC (rev 3819)
+++ trunk/pingus/src/math/size.cpp      2008-07-14 14:11:53 UTC (rev 3820)
@@ -27,7 +27,7 @@
 
 std::ostream& operator<<(std::ostream& os, const Size& size)
 {
-  return os << "size[" << size.width << ", " << size.height << "]";
+  return os << "Size(" << size.width << ", " << size.height << ")";
 }
 
 /* EOF */

Modified: trunk/pingus/src/math/vector2f.cpp
===================================================================
--- trunk/pingus/src/math/vector2f.cpp  2008-07-14 10:06:33 UTC (rev 3819)
+++ trunk/pingus/src/math/vector2f.cpp  2008-07-14 14:11:53 UTC (rev 3820)
@@ -48,7 +48,7 @@
 
 std::ostream& operator<<(std::ostream& s, const Vector2f& v)
 {
-  s << "vector2f(" << v.x << ", " << v.y << ")";
+  s << "Vector2f(" << v.x << ", " << v.y << ")";
   return s;
 }
 

Modified: trunk/pingus/src/math/vector2i.cpp
===================================================================
--- trunk/pingus/src/math/vector2i.cpp  2008-07-14 10:06:33 UTC (rev 3819)
+++ trunk/pingus/src/math/vector2i.cpp  2008-07-14 14:11:53 UTC (rev 3820)
@@ -24,7 +24,7 @@
 
 std::ostream& operator<<(std::ostream& s, const Vector2i& v)
 {
-  s << "vector2i(" << v.x << ", " << v.y << ")";
+  s << "Vector2i(" << v.x << ", " << v.y << ")";
   return s;
 }
 

Modified: trunk/pingus/src/math/vector3f.cpp
===================================================================
--- trunk/pingus/src/math/vector3f.cpp  2008-07-14 10:06:33 UTC (rev 3819)
+++ trunk/pingus/src/math/vector3f.cpp  2008-07-14 14:11:53 UTC (rev 3820)
@@ -166,7 +166,7 @@
 
 std::ostream& operator<<(std::ostream& os, const Vector3f& v)
 {
-  return os << "vector3f(" << v.x << ", " << v.y << ", " << v.z << ")";
+  return os << "Vector3f(" << v.x << ", " << v.y << ", " << v.z << ")";
 }
 
 /* EOF */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]