From: batt Date: Wed, 2 Sep 2009 15:10:58 +0000 (+0000) Subject: Restore previous cast: CONST_CAST in C++ is not suitable for casting a pointer to... X-Git-Tag: 2.2.0~108 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=0569ed9a41231afb989531bfb7c668de5c9d4fda;p=bertos.git 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 --- 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);