Reduce variable scopes

This commit is contained in:
practicalswift
2018-03-25 22:49:33 +02:00
parent 7466a26cab
commit 6a318e48a6
3 changed files with 3 additions and 5 deletions

View File

@@ -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;
}