Skip to content

Commit

Permalink
Remove cast to BMenuItem* it is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jscipione committed Nov 14, 2012
1 parent fc18a4f commit 08282eb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/apps/deskbar/BarMenuBar.cpp
Expand Up @@ -133,8 +133,7 @@ TBarMenuBar::RemoveTeamMenu()

bool removed = false;

if (fAppListMenuItem != NULL
&& RemoveItem(static_cast<BMenuItem*>(fAppListMenuItem))) {
if (fAppListMenuItem != NULL && RemoveItem(fAppListMenuItem)) {
delete fAppListMenuItem;
fAppListMenuItem = NULL;
SmartResize(-1, -1);
Expand Down Expand Up @@ -177,8 +176,7 @@ TBarMenuBar::RemoveSeperatorItem()

bool removed = false;

if (fSeparatorItem != NULL
&& RemoveItem(static_cast<BMenuItem*>(fSeparatorItem))) {
if (fSeparatorItem != NULL && RemoveItem(fSeparatorItem)) {
delete fSeparatorItem;
fSeparatorItem = NULL;
SmartResize(-1, -1);
Expand Down

0 comments on commit 08282eb

Please sign in to comment.