mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-10-15 15:00:58 -04:00
Replace remaining instances of Q_FOREACH with C++11 range-based for loops
This commit is contained in:
parent
2872f1706c
commit
cb51ec61f7
6 changed files with 72 additions and 44 deletions
|
@ -97,11 +97,11 @@ QString PasswordGenerator::generatePassword() const
|
|||
|
||||
int PasswordGenerator::getbits() const
|
||||
{
|
||||
QVector<PasswordGroup> groups = passwordGroups();
|
||||
const QVector<PasswordGroup> groups = passwordGroups();
|
||||
|
||||
int bits = 0;
|
||||
QVector<QChar> passwordChars;
|
||||
Q_FOREACH (const PasswordGroup& group, groups) {
|
||||
for (const PasswordGroup& group: groups) {
|
||||
bits += group.size();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue