From a2c8df83c6d7169de6b77ec3f253e3a75a23d434 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 24 Jan 2020 22:57:28 -0600 Subject: [PATCH] [nostalgia/tools/pack] Remove using namespaces --- src/nostalgia/tools/pack.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/nostalgia/tools/pack.cpp b/src/nostalgia/tools/pack.cpp index d8b37e2e..7680ffb1 100644 --- a/src/nostalgia/tools/pack.cpp +++ b/src/nostalgia/tools/pack.cpp @@ -17,9 +17,6 @@ #include "pack/pack.hpp" -using namespace std; -using namespace ox; - static void writeFileBuff(const std::string &path, std::vector &buff) { try { std::ofstream f(path, std::ios::binary); @@ -29,7 +26,7 @@ static void writeFileBuff(const std::string &path, std::vector &buff) { } } -void run(ClArgs args) { +void run(ox::ClArgs args) { std::string argSrc = args.getString("src").c_str(); std::string argDst = args.getString("dst").c_str(); if (argSrc == "") { @@ -55,7 +52,7 @@ void run(ClArgs args) { int main(int argc, const char **args) { try { - run(ClArgs(argc, args)); + run(ox::ClArgs(argc, args)); } catch (const ox::Error &err) { oxAssert(err, "pack failed"); std::cerr << "pack failed...\n";