mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
Limit variable scope
This commit is contained in:
@@ -55,10 +55,9 @@ QVariant RecentRequestsTableModel::data(const QModelIndex &index, int role) cons
|
||||
if(!index.isValid() || index.row() >= list.length())
|
||||
return QVariant();
|
||||
|
||||
const RecentRequestEntry *rec = &list[index.row()];
|
||||
|
||||
if(role == Qt::DisplayRole || role == Qt::EditRole)
|
||||
{
|
||||
const RecentRequestEntry *rec = &list[index.row()];
|
||||
switch(index.column())
|
||||
{
|
||||
case Date:
|
||||
|
||||
Reference in New Issue
Block a user