mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Replace remaining instances of Q_FOREACH with C++11 range-based for loops
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user