Fixed warnings, updated NEWS

This commit is contained in:
Robert Osfield
2009-01-30 10:55:28 +00:00
parent 6710fbc78a
commit 411431f3be
18 changed files with 37 additions and 36 deletions

View File

@@ -609,7 +609,7 @@ class OSG_EXPORT CompositeShape : public Shape
const Shape* getShape() const { return _shape.get(); }
/** Get the number of children of this composite shape.*/
unsigned int getNumChildren() const { return _children.size(); }
unsigned int getNumChildren() const { return static_cast<unsigned int>(_children.size()); }
/** Get a child.*/
Shape* getChild(unsigned int i) { return _children[i].get(); }
@@ -631,7 +631,7 @@ class OSG_EXPORT CompositeShape : public Shape
{
if (_children[childNo]==shape) return childNo;
}
return _children.size(); // node not found.
return static_cast<unsigned int>(_children.size()); // node not found.
}