diff --git a/src/apps/deskbar/BarMenuBar.cpp b/src/apps/deskbar/BarMenuBar.cpp index f46b3b4b812..173b5d97092 100644 --- a/src/apps/deskbar/BarMenuBar.cpp +++ b/src/apps/deskbar/BarMenuBar.cpp @@ -133,8 +133,7 @@ TBarMenuBar::RemoveTeamMenu() bool removed = false; - if (fAppListMenuItem != NULL - && RemoveItem(static_cast(fAppListMenuItem))) { + if (fAppListMenuItem != NULL && RemoveItem(fAppListMenuItem)) { delete fAppListMenuItem; fAppListMenuItem = NULL; SmartResize(-1, -1); @@ -177,8 +176,7 @@ TBarMenuBar::RemoveSeperatorItem() bool removed = false; - if (fSeparatorItem != NULL - && RemoveItem(static_cast(fSeparatorItem))) { + if (fSeparatorItem != NULL && RemoveItem(fSeparatorItem)) { delete fSeparatorItem; fSeparatorItem = NULL; SmartResize(-1, -1);