From 08282eb47616c72116fd4ad2ffc36ca4efddaf15 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Wed, 14 Nov 2012 14:43:29 -0500 Subject: [PATCH] Remove cast to BMenuItem* it is not needed --- src/apps/deskbar/BarMenuBar.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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);