Skip to content

Commit

Permalink
Fix Clang warnings about hidden virtual methods
Browse files Browse the repository at this point in the history
  • Loading branch information
akortunov committed Mar 7, 2019
1 parent dcec9df commit 72db11b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/terrain/quadtreenode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace Terrain
inline unsigned int getNumChildren() const { return _children.size(); }

// osg::Group::addChild() does a lot of unrelated stuff, but we just really want to add a child node.
void addChild(QuadTreeNode* child)
void addChildNode(QuadTreeNode* child)
{
// QuadTree node should not contain more than 4 child nodes.
// Reserve enough space if this node is supposed to have child nodes.
Expand Down
2 changes: 1 addition & 1 deletion components/terrain/quadtreeworld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class QuadTreeBuilder
if (child)
{
boundingBox.expandBy(child->getBoundingBox());
parent->addChild(child);
parent->addChildNode(child);
}
}

Expand Down

0 comments on commit 72db11b

Please sign in to comment.