mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-22 22:40:55 -04:00
Replace old for-loops with range-based for-loops
This commit is contained in:
parent
4876beabed
commit
4ac1601696
4 changed files with 8 additions and 9 deletions
|
@ -71,8 +71,7 @@ bool DialogyWidget::clickButton(QDialogButtonBox::StandardButton standardButton)
|
|||
}
|
||||
|
||||
QList<QDialogButtonBox*> buttonBoxes = findChildren<QDialogButtonBox*>();
|
||||
for (int i = 0; i < buttonBoxes.size(); ++i) {
|
||||
QDialogButtonBox* buttonBox = buttonBoxes.at(i);
|
||||
for (auto buttonBox : buttonBoxes) {
|
||||
pb = buttonBox->button(standardButton);
|
||||
if (pb && pb->isVisible() && pb->isEnabled()) {
|
||||
pb->click();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue