mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-06 10:20:41 +01:00
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:
parent
1a19b84384
commit
7d679469b1
|
@ -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() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user