summaryrefslogtreecommitdiff
path: root/common/curve.cpp
diff options
context:
space:
mode:
authorleo2001-01-07 15:10:13 +0000
committerleo2001-01-07 15:10:13 +0000
commit93974447340c70c890522e569ef45b1c2c8b8232 (patch)
tree1bb9bfb4669317fc97baf76319eca1b029a21c36 /common/curve.cpp
parente4bf8681d41af8c27ac0c104a80bddc8e7669f9d (diff)
Fixed warnings
git-svn-id: http://svn.leocad.org/trunk@215 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/curve.cpp')
-rwxr-xr-xcommon/curve.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/common/curve.cpp b/common/curve.cpp
index abb4f5b..18b5af8 100755
--- a/common/curve.cpp
+++ b/common/curve.cpp
@@ -285,7 +285,7 @@ Curve::Curve (PieceInfo *pInfo, const float *pos, unsigned char color)
Curve::~Curve ()
{
- for (unsigned int i = 0; i < m_Points.GetSize (); i++)
+ for (int i = 0; i < m_Points.GetSize (); i++)
delete m_Points[i];
glDeleteLists (m_nDisplayList, 1);
}
@@ -316,7 +316,7 @@ void Curve::MinIntersectDist (LC_CLICKLINE* pLine)
void Curve::UpdatePosition (unsigned short nTime, bool bAnimation)
{
- for (unsigned int i = 0; i < m_Points.GetSize (); i++)
+ for (int i = 0; i < m_Points.GetSize (); i++)
m_Points[i]->UpdatePosition (nTime, bAnimation);
glNewList (m_nDisplayList, GL_COMPILE);
@@ -333,7 +333,7 @@ void Curve::UpdatePosition (unsigned short nTime, bool bAnimation)
void Curve::Move (unsigned short nTime, bool bAnimation, bool bAddKey, float dx, float dy, float dz)
{
- for (unsigned int i = 0; i < m_Points.GetSize (); i++)
+ for (int i = 0; i < m_Points.GetSize (); i++)
m_Points[i]->Move (nTime, bAnimation, bAddKey, dx, dy, dz);
}
@@ -345,7 +345,7 @@ void Curve::Select (bool bSelecting, bool bFocus, bool bMultiple)
{
m_nState |= (LC_CURVE_SELECTED|LC_CURVE_FOCUSED);
- for (unsigned int i = 0; i < m_Points.GetSize (); i++)
+ for (int i = 0; i < m_Points.GetSize (); i++)
m_Points[i]->Select (false, true, bMultiple);
}
else
@@ -358,7 +358,7 @@ void Curve::Select (bool bSelecting, bool bFocus, bool bMultiple)
else
m_nState &= ~(LC_CURVE_SELECTED);
- for (unsigned int i = 0; i < m_Points.GetSize (); i++)
+ for (int i = 0; i < m_Points.GetSize (); i++)
m_Points[i]->Select (false, bFocus, bMultiple);
}
}
@@ -367,7 +367,7 @@ void Curve::DeselectOtherPoints (CurvePoint *pSender, bool bFocusOnly)
{
CurvePoint *pt;
- for (unsigned int i = 0; i < m_Points.GetSize (); i++)
+ for (int i = 0; i < m_Points.GetSize (); i++)
{
pt = m_Points[i];
if (pt != pSender)
@@ -496,7 +496,7 @@ void Curve::TesselateHose ()
glEnableClientState (GL_VERTEX_ARRAY);
glVertexPointer (3, GL_FLOAT, 0, verts);
- for (unsigned int i = 0; i < m_Points.GetSize () - 1; i++)
+ for (int i = 0; i < m_Points.GetSize () - 1; i++)
{
float a1, a2, angle_step; // axial rotation
@@ -672,7 +672,7 @@ void Curve::Render (LC_RENDER_INFO* pInfo)
}
}
- for (unsigned int i = 0; i < m_Points.GetSize (); i++)
+ for (int i = 0; i < m_Points.GetSize (); i++)
m_Points[i]->Render (pInfo);
}