Reduce scope of using declarations in main.cpp.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-12-29 08:46:15 +01:00
parent dec712b43e
commit 7e0278b542
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 12 additions and 10 deletions

View File

@ -16,18 +16,11 @@
#include <thread>
#include <vector>
using namespace mastorss;
using std::chrono::seconds;
using std::getenv;
using std::cout;
using std::cerr;
using std::runtime_error;
using std::string_view;
using std::vector;
using std::this_thread::sleep_for;
namespace mastorss
{
using std::cout;
using std::cerr;
namespace error
{
constexpr int noprofile = 1;
@ -60,6 +53,15 @@ void print_help(const string_view &command)
int main(int argc, char *argv[])
{
using namespace mastorss;
using std::chrono::seconds;
using std::getenv;
using std::cerr;
using std::runtime_error;
using std::string_view;
using std::vector;
using std::this_thread::sleep_for;
const vector<string_view> args(argv, argv + argc);
if (getenv("MASTORSS_DEBUG") == nullptr)