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

@@ -113,6 +113,7 @@ Json::Value doGetCounts (RPC::Context& context)
std::string uptime;
auto s = UptimeClock::now();
using namespace std::chrono_literals;
textTime (uptime, s, "year", 365 * 24h);
textTime (uptime, s, "day", 24h);
textTime (uptime, s, "hour", 1h);

View File

@@ -55,8 +55,7 @@ static int const defaultAutoFillFeeDivisor = 1;
static int const maxPathfindsInProgress = 2;
static int const maxPathfindJobCount = 50;
static int const maxJobQueueClients = 500;
using namespace std::chrono_literals;
auto constexpr maxValidatedLedgerAge = 2min;
auto constexpr maxValidatedLedgerAge = std::chrono::minutes {2};
static int const maxRequestSize = 1000000;
/** Maximum number of pages in one response from a binary LedgerData request. */