From 0569ed9a41231afb989531bfb7c668de5c9d4fda Mon Sep 17 00:00:00 2001 From: batt Date: Wed, 2 Sep 2009 15:10:58 +0000 Subject: [PATCH] Restore previous cast: CONST_CAST in C++ is not suitable for casting a pointer to another. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2860 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/gui/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/gui/menu.c b/bertos/gui/menu.c index e689ff96..d897ae94 100644 --- a/bertos/gui/menu.c +++ b/bertos/gui/menu.c @@ -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); -- 2.25.1