removed the need for RTTI/runtime type checking/dynamic_cast in glui. It is unnecessary to overhaul the build systems just for this feature. Replaced by upcasting virtual methods
if ( !dynamic_cast<GLUI_Rollout*>(this) && becomes if ( !this->dynamicCastGLUI_Rollout() && etc.
This commit is contained in:
@@ -57,7 +57,7 @@ void GLUI_FileBrowser::dir_list_callback(GLUI_Control *glui_object) {
|
||||
GLUI_List *list = dynamic_cast<GLUI_List*>(glui_object);
|
||||
if (!list)
|
||||
return;
|
||||
GLUI_FileBrowser* me = dynamic_cast<GLUI_FileBrowser*>(list->associated_object);
|
||||
GLUI_FileBrowser* me = list->associated_object->dynamicCastGLUI_FileBrowser();
|
||||
if (!me)
|
||||
return;
|
||||
int this_item;
|
||||
|
||||
Reference in New Issue
Block a user