Avoid const cast

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6159 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien 2020-11-14 16:00:33 +00:00
parent 1a19b84384
commit 7d679469b1

View File

@ -264,9 +264,7 @@ IGUITreeViewNode* CGUITreeViewNode::getNextSibling() const
IGUITreeViewNode* CGUITreeViewNode::getNextVisible() const
{
IGUITreeViewNode* next = 0;
IGUITreeViewNode* node = 0;
node = const_cast<CGUITreeViewNode*>( this );
const IGUITreeViewNode* node = this;
if( node->getExpanded() && node->hasChildren() )
{