mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-23 00:10:37 -05:00
Fix code-style issues
Fixed issues pointed out during review
This commit is contained in:
parent
943dc6cdd6
commit
258438f01f
6 changed files with 24 additions and 24 deletions
|
|
@ -586,6 +586,7 @@ void Entry::truncateHistory()
|
|||
|
||||
QMutableListIterator<Entry*> i(m_history);
|
||||
i.toBack();
|
||||
const QRegularExpression delimiter(",|:|;");
|
||||
while (i.hasPrevious()) {
|
||||
Entry* historyItem = i.previous();
|
||||
|
||||
|
|
@ -594,7 +595,8 @@ void Entry::truncateHistory()
|
|||
size += historyItem->attributes()->attributesSize();
|
||||
size += historyItem->autoTypeAssociations()->associationsSize();
|
||||
size += historyItem->attachments()->attachmentsSize(foundAttachments);
|
||||
foreach( const QString &tag, historyItem->tags().split(QRegExp(",|;|:"), QString::SkipEmptyParts)){
|
||||
const QStringList tags = historyItem->tags().split(delimiter, QString::SkipEmptyParts);
|
||||
for (const QString& tag : tags) {
|
||||
size += tag.toUtf8().size();
|
||||
}
|
||||
foundAttachments += historyItem->attachments()->values();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue