Qarning fixes, and updated the date in NEWS to reflect todays release of 0.8.45

This commit is contained in:
Robert Osfield
2002-04-26 08:16:14 +00:00
parent 2bd20f5c6f
commit 26d34ed6d6
10 changed files with 23 additions and 24 deletions

View File

@@ -78,18 +78,18 @@ class SG_EXPORT Drawable : public Object
* @param i index of the parent to get.
* @return the parent i.
*/
inline Node* getParent(const int i) { return _parents[i]; }
inline Node* getParent(const unsigned int i) { return _parents[i]; }
/** Get a single const parent of Drawable.
* @param i index of the parent to get.
* @return the parent i.
*/
inline const Node* getParent(const int i) const { return _parents[i]; }
inline const Node* getParent(const unsigned int i) const { return _parents[i]; }
/**
* Get the number of parents of node.
* @return the number of parents of this node.
*/
inline const int getNumParents() const { return _parents.size(); }
inline const unsigned int getNumParents() const { return _parents.size(); }

View File

@@ -57,13 +57,13 @@ class SG_EXPORT Group : public Node
virtual bool replaceChild( Node *origChild, Node* newChild );
/** return the number of chilren nodes.*/
inline const int getNumChildren() const { return _children.size(); }
inline const unsigned int getNumChildren() const { return _children.size(); }
/** return child node at position i.*/
inline Node *getChild( const int i ) { return _children[i].get(); }
inline Node *getChild( const unsigned int i ) { return _children[i].get(); }
/** return child node at position i.*/
inline const Node *getChild( const int i ) const { return _children[i].get(); }
inline const Node *getChild( const unsigned int i ) const { return _children[i].get(); }
/** return true if node is contained within Group.*/
inline bool containsNode( const Node* node ) const

View File

@@ -46,7 +46,7 @@ class SG_EXPORT LOD : public Group
inline const float getRange(const unsigned int index) const { return _rangeList[index]; }
/** returns the number of ranges currently set.*/
inline const int getNumRanges() const { return _rangeList.size(); }
inline const unsigned int getNumRanges() const { return _rangeList.size(); }
/** Sets the object-space point which defines the center of the osg::LOD.
center is affected by any transforms in the hierarchy above the osg::LOD.*/

View File

@@ -83,13 +83,13 @@ class SG_EXPORT Node : public Object
* prevent modification of the parent list.*/
inline ParentList getParents() { return _parents; }
inline Group* getParent(const int i) { return _parents[i]; }
inline Group* getParent(const unsigned int i) { return _parents[i]; }
/**
* Get a single const parent of node.
* @param i index of the parent to get.
* @return the parent i.
*/
inline const Group* getParent(const int i) const { return _parents[i]; }
inline const Group* getParent(const unsigned int i) const { return _parents[i]; }
/**
* Get the number of parents of node.