Skip to content

Commit a5a0831

Browse files
author
21E14
committed
Double semicolon cleanup.
1 parent be9a9a3 commit a5a0831

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ struct COrphanTx {
8484
CTransaction tx;
8585
NodeId fromPeer;
8686
};
87-
map<uint256, COrphanTx> mapOrphanTransactions GUARDED_BY(cs_main);;
88-
map<uint256, set<uint256> > mapOrphanTransactionsByPrev GUARDED_BY(cs_main);;
87+
map<uint256, COrphanTx> mapOrphanTransactions GUARDED_BY(cs_main);
88+
map<uint256, set<uint256> > mapOrphanTransactionsByPrev GUARDED_BY(cs_main);
8989
void EraseOrphansFor(NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
9090

9191
/**

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ void ThreadMapPort()
13701370
LogPrintf("AddPortMapping(%s, %s, %s) failed with code %d (%s)\n",
13711371
port, port, lanaddr, r, strupnperror(r));
13721372
else
1373-
LogPrintf("UPnP Port Mapping successful.\n");;
1373+
LogPrintf("UPnP Port Mapping successful.\n");
13741374

13751375
MilliSleep(20*60*1000); // Refresh every 20 minutes
13761376
}

src/qt/bantablemodel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ int BanTableModel::rowCount(const QModelIndex &parent) const
103103
int BanTableModel::columnCount(const QModelIndex &parent) const
104104
{
105105
Q_UNUSED(parent);
106-
return columns.length();;
106+
return columns.length();
107107
}
108108

109109
QVariant BanTableModel::data(const QModelIndex &index, int role) const
@@ -178,4 +178,4 @@ bool BanTableModel::shouldShow()
178178
if (priv->size() > 0)
179179
return true;
180180
return false;
181-
}
181+
}

src/qt/guiutil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ QString formatBitcoinURI(const SendCoinsRecipient &info)
225225

226226
if (!info.message.isEmpty())
227227
{
228-
QString msg(QUrl::toPercentEncoding(info.message));;
228+
QString msg(QUrl::toPercentEncoding(info.message));
229229
ret += QString("%1message=%2").arg(paramCount == 0 ? "?" : "&").arg(msg);
230230
paramCount++;
231231
}

src/qt/peertablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ int PeerTableModel::rowCount(const QModelIndex &parent) const
147147
int PeerTableModel::columnCount(const QModelIndex &parent) const
148148
{
149149
Q_UNUSED(parent);
150-
return columns.length();;
150+
return columns.length();
151151
}
152152

153153
QVariant PeerTableModel::data(const QModelIndex &index, int role) const

src/test/rpc_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ BOOST_AUTO_TEST_CASE(rpc_ban)
237237
UniValue o1 = ar[0].get_obj();
238238
UniValue adr = find_value(o1, "address");
239239
BOOST_CHECK_EQUAL(adr.get_str(), "127.0.0.0/32");
240-
BOOST_CHECK_NO_THROW(CallRPC(string("setban 127.0.0.0 remove")));;
240+
BOOST_CHECK_NO_THROW(CallRPC(string("setban 127.0.0.0 remove")));
241241
BOOST_CHECK_NO_THROW(r = CallRPC(string("listbanned")));
242242
ar = r.get_array();
243243
BOOST_CHECK_EQUAL(ar.size(), 0);
@@ -267,7 +267,7 @@ BOOST_AUTO_TEST_CASE(rpc_ban)
267267
// must throw an exception because 127.0.0.1 is in already banned suubnet range
268268
BOOST_CHECK_THROW(r = CallRPC(string("setban 127.0.0.1 add")), runtime_error);
269269

270-
BOOST_CHECK_NO_THROW(CallRPC(string("setban 127.0.0.0/24 remove")));;
270+
BOOST_CHECK_NO_THROW(CallRPC(string("setban 127.0.0.0/24 remove")));
271271
BOOST_CHECK_NO_THROW(r = CallRPC(string("listbanned")));
272272
ar = r.get_array();
273273
BOOST_CHECK_EQUAL(ar.size(), 0);

0 commit comments

Comments
 (0)