summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistselection.cpp1
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp14
2 files changed, 6 insertions, 9 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistselection.cpp b/noncore/multimedia/opieplayer2/playlistselection.cpp
index 975dec3..2019b3a 100644
--- a/noncore/multimedia/opieplayer2/playlistselection.cpp
+++ b/noncore/multimedia/opieplayer2/playlistselection.cpp
@@ -114,7 +114,6 @@ void PlayListSelection::addToSelection( const DocLnk &lnk ) {
void PlayListSelection::removeSelected() {
QListViewItem *item = selectedItem();
- if ( item )
delete item;
setSelected( currentItem(), TRUE );
ensureItemVisible( selectedItem() );
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 86b3424..ac52b07 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -191,7 +191,7 @@ void PlayListWidget::writeDefaultPlaylist() {
m3uList->write();
m3uList->close();
- if(m3uList) delete m3uList;
+ delete m3uList;
}
}
@@ -684,10 +684,8 @@ void PlayListWidget::openFile() {
}
}
- if( fileDlg ) {
delete fileDlg;
}
-}
/*
reads m3u and shows files/urls to playlist widget */
@@ -734,7 +732,7 @@ void PlayListWidget::readm3u( const QString &filename ) {
// m3uList->write();
m3uList->close();
- if(m3uList) delete m3uList;
+ delete m3uList;
d->selectedFiles->setSelectedItem( s);
setCaption(tr("OpiePlayer: ")+ QFileInfo(filename).baseName());
@@ -782,7 +780,7 @@ void PlayListWidget::readPls( const QString &filename ) {
}
m3uList->close();
- if(m3uList) delete m3uList;
+ delete m3uList;
}
/*
@@ -806,7 +804,7 @@ void PlayListWidget::writeCurrentM3u() {
m3uList->write();
m3uList->close();
- if(m3uList) delete m3uList;
+ delete m3uList;
}
}
@@ -842,9 +840,9 @@ void PlayListWidget::writem3u() {
// qDebug( list );
m3uList->write();
m3uList->close();
- if(m3uList) delete m3uList;
+ delete m3uList;
- if(fileDlg) delete fileDlg;
+ delete fileDlg;
DocLnk lnk;
lnk.setFile( filename);