diff --git a/src/prefs/media/MediaViews.cpp b/src/prefs/media/MediaViews.cpp index 64b6af0c0e..21732a52ee 100644 --- a/src/prefs/media/MediaViews.cpp +++ b/src/prefs/media/MediaViews.cpp @@ -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(item); BMessage message(ML_DEFAULT_CHANGE); message.AddBool("isVideo", mIsVideo); diff --git a/src/prefs/media/MediaWindow.cpp b/src/prefs/media/MediaWindow.cpp index c185ccdefb..53796b8f90 100644 --- a/src/prefs/media/MediaWindow.cpp +++ b/src/prefs/media/MediaWindow.cpp @@ -53,13 +53,13 @@ MediaWindow::MediaWindow(BRect frame) MediaWindow::~MediaWindow() { for(int i=0; i(mAudioOutputs.ItemAt(i)); for(int i=0; i(mAudioInputs.ItemAt(i)); for(int i=0; i(mVideoOutputs.ItemAt(i)); for(int i=0; i(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(listItem); while((listItem = mAudioOutputs.RemoveItem((int32)0))) - delete listItem; + delete static_cast(listItem); while((listItem = mAudioInputs.RemoveItem((int32)0))) - delete listItem; + delete static_cast(listItem); while((listItem = mVideoOutputs.RemoveItem((int32)0))) - delete listItem; + delete static_cast(listItem); while((listItem = mVideoInputs.RemoveItem((int32)0))) - delete listItem; + delete static_cast(listItem); MediaListItem *item, *mixer, *audio, *video;