No point in including an empty foreach when NDEBUG isn't defined

This commit is contained in:
Aleix Pol 2018-10-09 00:52:59 +02:00
parent 8c18054a0d
commit 0698c65a83

View File

@ -421,11 +421,11 @@ FrameSvgPrivate::~FrameSvgPrivate()
#ifndef NDEBUG
// qCDebug(LOG_PLASMA) << " " << it2.key() << rc << it2.value();
#endif
foreach (FrameSvg *data, it2.value()->references.keys()) {
#ifndef NDEBUG
foreach (FrameSvg *data, it2.value()->references.keys()) {
qCDebug(LOG_PLASMA) << " " << (void *)data << it2.value()->references[data];
#endif
}
#endif
shares += rc - 1;
}
}