Restore previous cast: CONST_CAST in C++ is not suitable for casting a pointer to...
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 2 Sep 2009 15:10:58 +0000 (15:10 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 2 Sep 2009 15:10:58 +0000 (15:10 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2860 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/gui/menu.c

index e689ff96cd96ef8362768ab4d5e20eb1dd434d3b..d897ae946825284ca40eb1ce4357374423565cda 100644 (file)
@@ -280,7 +280,7 @@ static void menu_layout(
                        #if (ARCH & ARCH_NIGHTTEST)
                                #warning __FILTER_NEXT_WARNING__
                        #endif
-                       RenderHook renderhook = (item->flags & MIF_RENDERHOOK) ? CONST_CAST(RenderHook, item->label) : menu_defaultRenderHook;
+                       RenderHook renderhook = (item->flags & MIF_RENDERHOOK) ? (RenderHook)item->label : menu_defaultRenderHook;
 
                        /* Render menuitem */
                        renderhook(menu->bitmap, ypos++, (i == selected), item);