Remove extra semicolons:

Several functions had an extra semicolon. This removes them.
This commit is contained in:
Joe Loser
2018-05-04 08:39:31 -04:00
committed by Nikolaos D. Bougalis
parent c1c332f0b0
commit 04f1388860
21 changed files with 33 additions and 32 deletions

View File

@@ -122,7 +122,7 @@ public:
makeSection (m_set1),
makeSection (m_set2),
makeSection (m_set3));
};
}
void testConstruct ()
{

View File

@@ -45,7 +45,7 @@ struct DepositAuth_test : public beast::unit_test::suite
static bool hasDepositAuth (jtx::Env const& env, jtx::Account const& acct)
{
return ((*env.le(acct))[sfFlags] & lsfDepositAuth) == lsfDepositAuth;
};
}
void testEnable()

View File

@@ -46,7 +46,7 @@ class Offer_test : public beast::unit_test::suite
using namespace jtx;
auto feeDrops = env.current()->fees().base;
return drops (dropsPerXRP<std::int64_t>::value * xrpAmount - feeDrops);
};
}
static auto
ledgerEntryState(jtx::Env & env, jtx::Account const& acct_a,
@@ -60,7 +60,7 @@ class Offer_test : public beast::unit_test::suite
jvParams[jss::ripple_state][jss::accounts].append(acct_b.human());
return env.rpc ("json", "ledger_entry",
to_string(jvParams))[jss::result];
};
}
static auto
ledgerEntryRoot (jtx::Env & env, jtx::Account const& acct)
@@ -70,7 +70,7 @@ class Offer_test : public beast::unit_test::suite
jvParams[jss::account_root] = acct.human();
return env.rpc ("json", "ledger_entry",
to_string(jvParams))[jss::result];
};
}
static auto
ledgerEntryOffer (jtx::Env & env,
@@ -81,7 +81,7 @@ class Offer_test : public beast::unit_test::suite
jvParams[jss::offer][jss::seq] = offer_seq;
return env.rpc ("json", "ledger_entry",
to_string(jvParams))[jss::result];
};
}
static auto
getBookOffers(jtx::Env & env,

View File

@@ -42,7 +42,7 @@ class TrustAndBalance_test : public beast::unit_test::suite
jvParams[jss::ripple_state][jss::accounts].append(acct_a.human());
jvParams[jss::ripple_state][jss::accounts].append(acct_b.human());
return env.rpc ("json", "ledger_entry", to_string(jvParams))[jss::result];
};
}
void
testPayNonexistent (FeatureBitset features)

View File

@@ -252,7 +252,7 @@ public:
"orange",
};
return v;
};
}
protected:
static std::string name_map_part()
@@ -285,7 +285,7 @@ public:
std::make_pair ("orange", 5)
};
return v;
};
}
protected:
static std::string name_map_part()

View File

@@ -140,7 +140,7 @@ protected:
else
test_.log << "Expected " << toRm.string ()
<< " to be an empty existing directory." << std::endl;
};
}
public:
ConfigGuard (beast::unit_test::suite& test, path subDir,

View File

@@ -52,13 +52,13 @@ public:
startRealTime_{RealClock::now()},
startSimTime_{sched.now()}
{
};
}
void
start()
{
scheduler_.in(interval_, [this](){beat(scheduler_.now());});
};
}
void
beat(SimTime when)

View File

@@ -69,7 +69,7 @@ public:
Path& push_back (STPathElement const& pe);
Json::Value json () const;
private:
Path& addHelper (){return *this;};
Path& addHelper (){return *this;}
template <class First, class... Rest>
Path& addHelper (First&& first, Rest&&... rest);
};
@@ -133,7 +133,7 @@ private:
PathSet& addHelper ()
{
return *this;
};
}
template <class First, class... Rest>
PathSet& addHelper (First first, Rest... rest)
{

View File

@@ -1094,7 +1094,7 @@ public:
return false;
// Make sure no other message is waiting
return wsc->getMsg(timeout) == boost::none;
};
}
void
testCrossingSingleBookOffer()

View File

@@ -46,7 +46,7 @@ class LedgerRPC_test : public beast::unit_test::suite
}
else if (BEAST_EXPECT(jv.isMember(jss::error_message)))
BEAST_EXPECT(jv[jss::error_message] == msg);
};
}
// Corrupt a valid address by replacing the 10th character with '!'.
// '!' is not part of the ripple alphabet.

View File

@@ -432,7 +432,7 @@ class ServerStatus_test :
return;
BEAST_EXPECT(resp.result() == beast::http::status::ok);
}
};
}
void
testTruncatedWSUpgrade(boost::asio::yield_context& yield)
@@ -481,7 +481,7 @@ class ServerStatus_test :
// keep trying to read until it gives up (by timeout)
async_read(sock, sb, resp, yield[ec]);
BEAST_EXPECT(ec);
};
}
void
testCantConnect(
@@ -1049,7 +1049,7 @@ public:
testStatusNotOkay (yield);
});
};
}
};
BEAST_DEFINE_TESTSUITE(ServerStatus, server, ripple);