Remove using namespace declarations at namespace scope in headers

This commit is contained in:
Scott Schurr
2018-08-03 11:42:39 -07:00
committed by seelabs
parent 4aa0bc37c0
commit 2901577be7
30 changed files with 74 additions and 38 deletions

View File

@@ -1013,6 +1013,7 @@ public:
BEAST_EXPECT(jrOffer[jss::owner_funds] == "100");
BEAST_EXPECT(jrOffer[jss::quality] == "400000000");
using namespace std::chrono_literals;
BEAST_EXPECT(wsc->findMsg(5s,
[&](auto const& jv)
{
@@ -1156,6 +1157,7 @@ public:
env(offer(charlie, USD(1000), XRP(1000)));
env.close();
env.require(offers(alice, 0), offers(bob, 0), offers(charlie, 0));
using namespace std::chrono_literals;
BEAST_EXPECT(offerOnlyOnceInStream(wsc, 1s, XRP(1000), USD(1000)));
// RPC unsubscribe
@@ -1238,6 +1240,7 @@ public:
// Charlies places an on offer for EUR -> USD that should auto-bridge
env(offer(charlie, USD(1), EUR(1)));
env.close();
using namespace std::chrono_literals;
BEAST_EXPECT(offerOnlyOnceInStream(wsc, 1s, EUR(1), USD(1)));
// RPC unsubscribe

View File

@@ -666,6 +666,7 @@ class LedgerRPC_test : public beast::unit_test::suite
return jv;
};
using namespace std::chrono_literals;
env (escrowCreate (alice, alice, XRP(333), env.now() + 2s));
env.close();

View File

@@ -52,6 +52,7 @@ class Peers_test : public beast::unit_test::suite
std::string name = "Node " + std::to_string(i);
using namespace std::chrono_literals;
env.app().cluster().update(
kp.first,
name,

View File

@@ -360,6 +360,7 @@ public:
env.close();
// Check stream update
using namespace std::chrono_literals;
BEAST_EXPECT(wsc->findMsg(5s,
[&](auto const& jv)
{

View File

@@ -269,6 +269,7 @@ public:
//----------------------------------------------------------------------
// Publisher list site available
{
using namespace std::chrono_literals;
NetClock::time_point const expiration{3600s};
// Manage single thread io_service for server