No need to test for isEmpty before using Q_FOREACH

Authored by tcanabrava on Jan 12 2017, 12:19 PM.

Description

No need to test for isEmpty before using Q_FOREACH

If the container is empty, it will just do anything
on the foreach macro. this also reduces the indentation
level a bit.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>

Details

Committed
tcanabravaJan 12 2017, 12:19 PM
Differential Revision
D4101: Remove uneeded if-guard
Parents
R32:48d50569a538: Use brace-initialization for QStringList
Branches
Unknown
Tags
Unknown