if (base == other.base)
return;
- if (base->refCount.deref() == false)
+ if (!base->refCount.deref())
delete base;
base = other.base;
ExceptionHolder::~ExceptionHolder()
{
- if (base->refCount.deref() == 0)
+ if (!base->refCount.deref())
delete base;
}
EngineDataCache::ConstIterator it = engineDataCache.constBegin(),
end = engineDataCache.constEnd();
while (it != end) {
- if (it.value()->ref.deref() == 0)
+ if (!it.value()->ref.deref())
delete it.value();
else
FC_DEBUG("QFontCache::~QFontCache: engineData %p still has refcount %d",
for (EngineCache::Iterator it = engineCache.begin(), end = engineCache.end();
it != end; ++it) {
- if (it->data->ref.deref() == 0) {
+ if (!it->data->ref.deref()) {
delete it->data;
it->data = 0;
}