aboutsummaryrefslogtreecommitdiffstats
path: root/taglib/asf
diff options
context:
space:
mode:
authorScott Wheeler <scott@directededge.com>2015-05-18 21:40:11 +0200
committerScott Wheeler <scott@directededge.com>2015-05-18 21:40:21 +0200
commit089e44f3db0bac39ff5cae85c19b600ad3a9a4ad (patch)
tree2eccc20e5e232a61ab106e848160b5fa9a5a5b20 /taglib/asf
parentbd3c4dc1b29f2a0052a28db1ecef84632f779948 (diff)
Remove unnecessary checks for null before delete
Closes #343
Diffstat (limited to 'taglib/asf')
-rw-r--r--taglib/asf/asfproperties.cpp3
-rw-r--r--taglib/asf/asftag.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/taglib/asf/asfproperties.cpp b/taglib/asf/asfproperties.cpp
index b82c131a..acec09d2 100644
--- a/taglib/asf/asfproperties.cpp
+++ b/taglib/asf/asfproperties.cpp
@@ -51,8 +51,7 @@ ASF::Properties::Properties() : AudioProperties(AudioProperties::Average)
ASF::Properties::~Properties()
{
- if(d)
- delete d;
+ delete d;
}
int ASF::Properties::length() const
diff --git a/taglib/asf/asftag.cpp b/taglib/asf/asftag.cpp
index 9317bc6a..13d92b5f 100644
--- a/taglib/asf/asftag.cpp
+++ b/taglib/asf/asftag.cpp
@@ -47,8 +47,7 @@ ASF::Tag::Tag()
ASF::Tag::~Tag()
{
- if(d)
- delete d;
+ delete d;
}
String ASF::Tag::title() const