Warning fixes

This commit is contained in:
Robert Osfield
2009-02-03 15:28:53 +00:00
parent abb63e3199
commit 734463fcc7
22 changed files with 107 additions and 22 deletions

View File

@@ -1650,7 +1650,7 @@ class CopyPointsToVertexArrayVisitor : public osg::ArrayVisitor
protected:
CopyPointsToVertexArrayVisitor& operator = (CopyPointsToArrayVisitor&) { return *this; }
CopyPointsToVertexArrayVisitor& operator = (const CopyPointsToArrayVisitor&) { return *this; }
};

View File

@@ -82,7 +82,28 @@ class triangle
{
public:
triangle();
triangle(const triangle& tri):
m_A(tri.m_A),
m_B(tri.m_B),
m_C(tri.m_C),
m_StripID(tri.m_StripID)
{
}
triangle(const indice A, const indice B, const indice C);
triangle& operator = (const triangle& tri)
{
if (&tri==this) return *this;
m_A = tri.m_A;
m_B = tri.m_B;
m_C = tri.m_C;
m_StripID = tri.m_StripID;
return *this;
}
void SetStripID(const size_t StripID);