mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
[Qt] constify foreach uses where possible
- this doesn't replace BOOST_FOREACH, it just makes used arguments const where possible
This commit is contained in:
@@ -254,8 +254,7 @@ void AddressBookPage::done(int retval)
|
||||
// Figure out which address was selected, and return it
|
||||
QModelIndexList indexes = table->selectionModel()->selectedRows(AddressTableModel::Address);
|
||||
|
||||
foreach (QModelIndex index, indexes)
|
||||
{
|
||||
foreach (const QModelIndex& index, indexes) {
|
||||
QVariant address = table->model()->data(index);
|
||||
returnValue = address.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user