From 50fdf5e30cd59090fb6600f0fbae8888c43ca7ee Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 26 Nov 2013 13:21:25 +0000 Subject: (svn r26121) -Codechange: add some asserts after dynamic casts to show they shouldn't return NULL ever --- src/widgets/dropdown.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/widgets') diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp index 400514822..7da533a74 100644 --- a/src/widgets/dropdown.cpp +++ b/src/widgets/dropdown.cpp @@ -475,6 +475,7 @@ int HideDropDownMenu(Window *pw) if (w->window_class != WC_DROPDOWN_MENU) continue; DropdownWindow *dw = dynamic_cast(w); + assert(dw != NULL); if (pw->window_class == dw->parent_wnd_class && pw->window_number == dw->parent_wnd_num) { int parent_button = dw->parent_button; -- cgit v1.2.3-70-g09d2