diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2015-07-06 08:11:34 +0200 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2015-07-07 06:53:43 +0200 |
commit | 5e058e74179f0e4ad62841ca82536f61b4673a1d (patch) | |
tree | fca1ea7a9c5cd58ff93e0f088a02f1a8dea21b7b /src/qt/addressbookpage.cpp | |
parent | d0a10c1959176eb40c0ec47a56de00820c59066d (diff) |
[Qt] constify foreach uses where possible
- this doesn't replace BOOST_FOREACH, it just makes used arguments const
where possible
Diffstat (limited to 'src/qt/addressbookpage.cpp')
-rw-r--r-- | src/qt/addressbookpage.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qt/addressbookpage.cpp b/src/qt/addressbookpage.cpp index 5485d89f3e..54635f1d54 100644 --- a/src/qt/addressbookpage.cpp +++ b/src/qt/addressbookpage.cpp @@ -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(); } |