[Gtkradiant] r4801 - GtkRadiant/trunk/plugins/entity

svn-noreply at zerowing.idsoftware.com svn-noreply at zerowing.idsoftware.com
Sat Sep 25 14:06:05 CDT 2004


Author: spog
Date: 2004-09-25 14:05:48 -0500 (Sat, 25 Sep 2004)
New Revision: 4801

Modified:
   GtkRadiant/trunk/plugins/entity/static.cpp
Log:
fixed gcc build error

Modified: GtkRadiant/trunk/plugins/entity/static.cpp
===================================================================
--- GtkRadiant/trunk/plugins/entity/static.cpp	2004-09-25 18:50:04 UTC (rev 4800)
+++ GtkRadiant/trunk/plugins/entity/static.cpp	2004-09-25 19:05:48 UTC (rev 4801)
@@ -246,7 +246,7 @@
   ControlPointAdd(RenderablePointVector& points) : m_points(points)
   {
   }
-  void operator()(const Vector3& point)
+  void operator()(const Vector3& point) const
   {
     m_points.push_back(PointVertex(vertex3f_for_vector3(point), colour_vertex));
   }
@@ -259,7 +259,7 @@
   ControlPointAddSelected(RenderablePointVector& points) : m_points(points)
   {
   }
-  void operator()(const Vector3& point)
+  void operator()(const Vector3& point) const
   {
     m_points.push_back(PointVertex(vertex3f_for_vector3(point), colour_selected));
   }
@@ -288,7 +288,7 @@
   }
 
   template<typename Functor>
-  Functor& forEachSelected(Functor& functor)
+  const Functor& forEachSelected(const Functor& functor)
   {
     RADIANT_ASSERT(m_controlPoints.size() == m_selectables.size(), "curve instance mismatch");
     ControlPoints::iterator p = m_controlPoints.begin();
@@ -302,7 +302,7 @@
     return functor;
   }
   template<typename Functor>
-  Functor& forEachSelected(Functor& functor) const
+  const Functor& forEachSelected(const Functor& functor) const
   {
     RADIANT_ASSERT(m_controlPoints.size() == m_selectables.size(), "curve instance mismatch");
     ControlPoints::const_iterator p = m_controlPoints.begin();
@@ -316,7 +316,7 @@
     return functor;
   }
   template<typename Functor>
-  Functor& forEach(Functor& functor) const
+  const Functor& forEach(const Functor& functor) const
   {
     for(ControlPoints::const_iterator i = m_controlPoints.begin(); i != m_controlPoints.end(); ++i)
     {
@@ -883,7 +883,7 @@
   ControlPointAddBounds(AABB& bounds) : m_bounds(bounds)
   {
   }
-  void operator()(const Vector3& point)
+  void operator()(const Vector3& point) const
   {
     aabb_extend_by_point_safe(m_bounds, point);
   }




More information about the Gtkradiant mailing list