[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/sysadmin/libqapt/src
From: Jonathan Michael Thomas <echidnaman () kubuntu ! org>
Date: 2010-12-17 16:15:29
Message-ID: 20101217161529.8D6FAAC8AB () svn ! kde ! org
[Download RAW message or body]
SVN commit 1207364 by jmthomas:
Remove unnecessary null checks before deletion
M +3 -8 cache.cpp
--- trunk/extragear/sysadmin/libqapt/src/cache.cpp #1207363:1207364
@@ -92,22 +92,17 @@
Q_D(Cache);
// delete any old structures
- if (d->cache) {
delete d->cache;
d->cache = 0;
- }
- if (d->policy) {
+
delete d->policy;
d->policy = 0;
- }
- if (d->depCache) {
+
delete d->depCache;
d->depCache = 0;
- }
- if (d->mmap) {
+
delete d->mmap;
d->mmap = 0;
- }
// Read the sources list
if (!d->list->ReadMainList()) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic