address compiler warnings

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10142 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2004-11-22 01:41:57 +00:00
parent 03f6835ae7
commit 171f2ead33
2 changed files with 10 additions and 10 deletions

View File

@ -162,7 +162,7 @@ SettingsView::AddNodes(BList &list, bool isInput)
BMenu *menu = isInput ? mMenu1 : mMenu2;
void *item;
while ((item = menu->RemoveItem((int32)0)) != NULL)
delete item;
delete static_cast<dormant_node_info *>(item);
BMessage message(ML_DEFAULT_CHANGE);
message.AddBool("isVideo", mIsVideo);

View File

@ -53,13 +53,13 @@ MediaWindow::MediaWindow(BRect frame)
MediaWindow::~MediaWindow()
{
for(int i=0; i<mAudioOutputs.CountItems(); i++)
delete mAudioOutputs.ItemAt(i);
delete static_cast<dormant_node_info *>(mAudioOutputs.ItemAt(i));
for(int i=0; i<mAudioInputs.CountItems(); i++)
delete mAudioInputs.ItemAt(i);
delete static_cast<dormant_node_info *>(mAudioInputs.ItemAt(i));
for(int i=0; i<mVideoOutputs.CountItems(); i++)
delete mVideoOutputs.ItemAt(i);
delete static_cast<dormant_node_info *>(mVideoOutputs.ItemAt(i));
for(int i=0; i<mVideoInputs.CountItems(); i++)
delete mVideoInputs.ItemAt(i);
delete static_cast<dormant_node_info *>(mVideoInputs.ItemAt(i));
BMediaRoster *roster = BMediaRoster::Roster();
if(roster && mCurrentNode)
@ -247,15 +247,15 @@ MediaWindow::InitMedia(bool first)
void *listItem;
while((listItem = mListView->RemoveItem((int32)0)))
delete listItem;
delete static_cast<MediaListItem *>(listItem);
while((listItem = mAudioOutputs.RemoveItem((int32)0)))
delete listItem;
delete static_cast<dormant_node_info *>(listItem);
while((listItem = mAudioInputs.RemoveItem((int32)0)))
delete listItem;
delete static_cast<dormant_node_info *>(listItem);
while((listItem = mVideoOutputs.RemoveItem((int32)0)))
delete listItem;
delete static_cast<dormant_node_info *>(listItem);
while((listItem = mVideoInputs.RemoveItem((int32)0)))
delete listItem;
delete static_cast<dormant_node_info *>(listItem);
MediaListItem *item, *mixer, *audio, *video;