From 7d679469b150cae164a07088b253047bddc96de3 Mon Sep 17 00:00:00 2001 From: cutealien Date: Sat, 14 Nov 2020 16:00:33 +0000 Subject: [PATCH] Avoid const cast git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6159 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/CGUITreeView.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/Irrlicht/CGUITreeView.cpp b/source/Irrlicht/CGUITreeView.cpp index f6d7743a..2614cadc 100644 --- a/source/Irrlicht/CGUITreeView.cpp +++ b/source/Irrlicht/CGUITreeView.cpp @@ -264,9 +264,7 @@ IGUITreeViewNode* CGUITreeViewNode::getNextSibling() const IGUITreeViewNode* CGUITreeViewNode::getNextVisible() const { IGUITreeViewNode* next = 0; - IGUITreeViewNode* node = 0; - - node = const_cast( this ); + const IGUITreeViewNode* node = this; if( node->getExpanded() && node->hasChildren() ) {