Fix code-style issues

Fixed issues pointed out during review
This commit is contained in:
Christian Kieschnick 2018-01-16 08:34:56 +01:00 committed by Janek Bevendorff
parent 943dc6cdd6
commit 258438f01f
No known key found for this signature in database
GPG key ID: 2FDEB0D40BCA5E11
6 changed files with 24 additions and 24 deletions

View file

@ -286,11 +286,8 @@ void EntryAttributes::clear()
int EntryAttributes::attributesSize() const
{
int size = 0;
QMapIterator<QString, QString> i(m_attributes);
while (i.hasNext()) {
i.next();
size += i.key().toUtf8().size() + i.value().toUtf8().size();
for (auto it = m_attributes.constBegin(); it != m_attributes.constEnd(); ++it) {
size += it.key().toUtf8().size() + it.value().toUtf8().size();
}
return size;
}