Skip to content

Commit

Permalink
Merge pull request bitcoin#7263
Browse files Browse the repository at this point in the history
a5a0831 Double semicolon cleanup. (21E14)
  • Loading branch information
laanwj authored and codablock committed Sep 5, 2017
1 parent 6c0cc6f commit 4021edc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/net.cpp
Expand Up @@ -1447,7 +1447,7 @@ void ThreadMapPort()
LogPrintf("AddPortMapping(%s, %s, %s) failed with code %d (%s)\n",
port, port, lanaddr, r, strupnperror(r));
else
LogPrintf("UPnP Port Mapping successful.\n");;
LogPrintf("UPnP Port Mapping successful.\n");

MilliSleep(20*60*1000); // Refresh every 20 minutes
}
Expand Down
4 changes: 2 additions & 2 deletions src/qt/bantablemodel.cpp
Expand Up @@ -104,7 +104,7 @@ int BanTableModel::rowCount(const QModelIndex &parent) const
int BanTableModel::columnCount(const QModelIndex &parent) const
{
Q_UNUSED(parent);
return columns.length();;
return columns.length();
}

QVariant BanTableModel::data(const QModelIndex &index, int role) const
Expand Down Expand Up @@ -179,4 +179,4 @@ bool BanTableModel::shouldShow()
if (priv->size() > 0)
return true;
return false;
}
}
2 changes: 1 addition & 1 deletion src/qt/guiutil.cpp
Expand Up @@ -235,7 +235,7 @@ QString formatBitcoinURI(const SendCoinsRecipient &info)

if (!info.message.isEmpty())
{
QString msg(QUrl::toPercentEncoding(info.message));;
QString msg(QUrl::toPercentEncoding(info.message));
ret += QString("%1message=%2").arg(paramCount == 0 ? "?" : "&").arg(msg);
paramCount++;
}
Expand Down
2 changes: 1 addition & 1 deletion src/qt/peertablemodel.cpp
Expand Up @@ -147,7 +147,7 @@ int PeerTableModel::rowCount(const QModelIndex &parent) const
int PeerTableModel::columnCount(const QModelIndex &parent) const
{
Q_UNUSED(parent);
return columns.length();;
return columns.length();
}

QVariant PeerTableModel::data(const QModelIndex &index, int role) const
Expand Down
4 changes: 2 additions & 2 deletions src/test/rpc_tests.cpp
Expand Up @@ -236,7 +236,7 @@ BOOST_AUTO_TEST_CASE(rpc_ban)
UniValue o1 = ar[0].get_obj();
UniValue adr = find_value(o1, "address");
BOOST_CHECK_EQUAL(adr.get_str(), "127.0.0.0/32");
BOOST_CHECK_NO_THROW(CallRPC(string("setban 127.0.0.0 remove")));;
BOOST_CHECK_NO_THROW(CallRPC(string("setban 127.0.0.0 remove")));
BOOST_CHECK_NO_THROW(r = CallRPC(string("listbanned")));
ar = r.get_array();
BOOST_CHECK_EQUAL(ar.size(), 0);
Expand Down Expand Up @@ -266,7 +266,7 @@ BOOST_AUTO_TEST_CASE(rpc_ban)
// must throw an exception because 127.0.0.1 is in already banned suubnet range
BOOST_CHECK_THROW(r = CallRPC(string("setban 127.0.0.1 add")), runtime_error);

BOOST_CHECK_NO_THROW(CallRPC(string("setban 127.0.0.0/24 remove")));;
BOOST_CHECK_NO_THROW(CallRPC(string("setban 127.0.0.0/24 remove")));
BOOST_CHECK_NO_THROW(r = CallRPC(string("listbanned")));
ar = r.get_array();
BOOST_CHECK_EQUAL(ar.size(), 0);
Expand Down

0 comments on commit 4021edc

Please sign in to comment.