Reduce scope of using declarations in main.cpp.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dec712b43e
commit
7e0278b542
22
src/main.cpp
22
src/main.cpp
|
@ -16,18 +16,11 @@
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <vector>
|
#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
|
namespace mastorss
|
||||||
{
|
{
|
||||||
|
using std::cout;
|
||||||
|
using std::cerr;
|
||||||
|
|
||||||
namespace error
|
namespace error
|
||||||
{
|
{
|
||||||
constexpr int noprofile = 1;
|
constexpr int noprofile = 1;
|
||||||
|
@ -60,6 +53,15 @@ void print_help(const string_view &command)
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
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);
|
const vector<string_view> args(argv, argv + argc);
|
||||||
|
|
||||||
if (getenv("MASTORSS_DEBUG") == nullptr)
|
if (getenv("MASTORSS_DEBUG") == nullptr)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user