diff --git a/include/osg/StateSet b/include/osg/StateSet index 4de9bc739..6dca8a69b 100644 --- a/include/osg/StateSet +++ b/include/osg/StateSet @@ -65,7 +65,7 @@ class OSG_EXPORT StateSet : public Object /** A vector of osg::Object pointers which is used to store the parent(s) of this Stateset, the parents could be osg::Node or osg::Drawable.*/ - typedef std::vector ParentList; + typedef std::vector ParentList; /** Get the parent list of this StateSet. */ inline const ParentList& getParents() const { return _parents; } @@ -74,13 +74,13 @@ class OSG_EXPORT StateSet : public Object * prevent modification of the parent list.*/ inline ParentList getParents() { return _parents; } - inline Object* getParent(unsigned int i) { return _parents[i]; } + inline Node* getParent(unsigned int i) { return _parents[i]; } /** * Get a single const parent of this StateSet. * @param i index of the parent to get. * @return the parent i. */ - inline const Object* getParent(unsigned int i) const { return _parents[i]; } + inline const Node* getParent(unsigned int i) const { return _parents[i]; } /** * Get the number of parents of this StateSet. @@ -458,8 +458,8 @@ class OSG_EXPORT StateSet : public Object StateSet& operator = (const StateSet&) { return *this; } - void addParent(osg::Object* object); - void removeParent(osg::Object* object); + void addParent(osg::Node* object); + void removeParent(osg::Node* object); ParentList _parents; friend class osg::Node; diff --git a/src/osg/NodeVisitor.cpp b/src/osg/NodeVisitor.cpp index 5797b48db..a1635bc7f 100644 --- a/src/osg/NodeVisitor.cpp +++ b/src/osg/NodeVisitor.cpp @@ -93,7 +93,7 @@ void NodeVisitor::apply(Node& node) void NodeVisitor::apply(Geode& node) { - apply(static_cast(node)); + apply(static_cast(node)); } void NodeVisitor::apply(Billboard& node) diff --git a/src/osg/StateSet.cpp b/src/osg/StateSet.cpp index 7f01c7654..bf5e16d71 100644 --- a/src/osg/StateSet.cpp +++ b/src/osg/StateSet.cpp @@ -273,7 +273,7 @@ void StateSet::computeDataVariance() } -void StateSet::addParent(osg::Object* object) +void StateSet::addParent(osg::Node* object) { // OSG_DEBUG_FP<<"Adding parent"< lock(getRefMutex()); @@ -281,7 +281,7 @@ void StateSet::addParent(osg::Object* object) _parents.push_back(object); } -void StateSet::removeParent(osg::Object* object) +void StateSet::removeParent(osg::Node* object) { OpenThreads::ScopedPointerLock lock(getRefMutex());