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
@@ -116,3 +116,2 @@ void PlayListSelection::removeSelected() {
QListViewItem *item = selectedItem();
- if ( item )
delete item;
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
@@ -193,3 +193,3 @@ void PlayListWidget::writeDefaultPlaylist() {
m3uList->close();
- if(m3uList) delete m3uList;
+ delete m3uList;
@@ -686,6 +686,4 @@ void PlayListWidget::openFile() {
- if( fileDlg ) {
delete fileDlg;
}
-}
@@ -736,3 +734,3 @@ void PlayListWidget::readm3u( const QString &filename ) {
m3uList->close();
- if(m3uList) delete m3uList;
+ delete m3uList;
@@ -784,3 +782,3 @@ void PlayListWidget::readPls( const QString &filename ) {
m3uList->close();
- if(m3uList) delete m3uList;
+ delete m3uList;
}
@@ -808,3 +806,3 @@ void PlayListWidget::writeCurrentM3u() {
- if(m3uList) delete m3uList;
+ delete m3uList;
}
@@ -844,5 +842,5 @@ void PlayListWidget::writem3u() {
m3uList->close();
- if(m3uList) delete m3uList;
+ delete m3uList;
- if(fileDlg) delete fileDlg;
+ delete fileDlg;