Fix code-style issues

Fixed issues pointed out during review
This commit is contained in:
Christian Kieschnick authored and Janek Bevendorff committed 2018-01-23 00:57:04 +01:00
1 parent 943dc6cdd6
commit 258438f01f
6 files changed
+24 -24

No files matched your search

+2 -5
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;
}