aboutsummaryrefslogtreecommitdiff
path: root/src/qt/recentrequeststablemodel.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-03-25 22:49:33 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-03-26 12:08:08 +0200
commit6a318e48a67a8f9834e14c960bd4f5b6e295b2dc (patch)
treebc7803e9200604881fc9059ba3d5e23da8d0e563 /src/qt/recentrequeststablemodel.cpp
parent7466a26cab5d66665991433947964a638f5b957e (diff)
downloadbitcoin-6a318e48a67a8f9834e14c960bd4f5b6e295b2dc.tar.xz
Reduce variable scopes
Diffstat (limited to 'src/qt/recentrequeststablemodel.cpp')
-rw-r--r--src/qt/recentrequeststablemodel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qt/recentrequeststablemodel.cpp b/src/qt/recentrequeststablemodel.cpp
index 0dd7d46960..f045053c3b 100644
--- a/src/qt/recentrequeststablemodel.cpp
+++ b/src/qt/recentrequeststablemodel.cpp
@@ -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;
}