mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-31 19:06:10 +02:00
Reduce variable scopes
This commit is contained in:
@@ -139,10 +139,9 @@ bool RecentRequestsTableModel::removeRows(int row, int count, const QModelIndex
|
||||
|
||||
if(count > 0 && row >= 0 && (row+count) <= list.size())
|
||||
{
|
||||
const RecentRequestEntry *rec;
|
||||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
rec = &list[row+i];
|
||||
const RecentRequestEntry* rec = &list[row+i];
|
||||
if (!walletModel->saveReceiveRequest(rec->recipient.address.toStdString(), rec->id, ""))
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user