aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bantablemodel.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2015-07-29 14:34:14 +0200
committerJonas Schnelli <[email protected]>2015-09-16 16:50:20 +0200
commit7f90ea78cb68c60408df85d5c653257dbc9160fe (patch)
tree98afbb661db8de879314d7c46faeea57cb559942 /src/qt/bantablemodel.cpp
parent[QA] fix netbase tests because of new CSubNet::ToString() output (diff)
downloaddiscoin-7f90ea78cb68c60408df85d5c653257dbc9160fe.tar.xz
discoin-7f90ea78cb68c60408df85d5c653257dbc9160fe.zip
[QA] adabt QT_NO_KEYWORDS for QT ban implementation
Diffstat (limited to 'src/qt/bantablemodel.cpp')
-rw-r--r--src/qt/bantablemodel.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qt/bantablemodel.cpp b/src/qt/bantablemodel.cpp
index 42542371e..33792af5b 100644
--- a/src/qt/bantablemodel.cpp
+++ b/src/qt/bantablemodel.cpp
@@ -54,11 +54,11 @@ public:
#if QT_VERSION >= 0x040700
cachedBanlist.reserve(banMap.size());
#endif
- foreach (const PAIRTYPE(CSubNet, CBanEntry)& banentry, banMap)
+ for (banmap_t::iterator it = banMap.begin(); it != banMap.end(); it++)
{
CCombinedBan banEntry;
- banEntry.subnet = banentry.first;
- banEntry.banEntry = banentry.second;
+ banEntry.subnet = (*it).first;
+ banEntry.banEntry = (*it).second;
cachedBanlist.append(banEntry);
}
@@ -161,9 +161,9 @@ QModelIndex BanTableModel::index(int row, int column, const QModelIndex &parent)
void BanTableModel::refresh()
{
- emit layoutAboutToBeChanged();
+ Q_EMIT layoutAboutToBeChanged();
priv->refreshBanlist();
- emit layoutChanged();
+ Q_EMIT layoutChanged();
}
void BanTableModel::sort(int column, Qt::SortOrder order)