[encodump] Use stdex::make_unique (#2691)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 17 Dec 2018 04:16:26 +0000 (13:16 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 17 Dec 2018 04:16:26 +0000 (13:16 +0900)
This commit replaces all the occurrences of make_unique in
nncc::foundation with stdex::make_unique.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/encodump/CMakeLists.txt
contrib/encodump/src/Driver.cpp

index 04e2fc3..3a250f9 100644 (file)
@@ -4,4 +4,5 @@ add_executable(encodump ${SOURCES})
 target_include_directories(encodump PRIVATE src)
 target_link_libraries(encodump enco_intf_frontend)
 target_link_libraries(encodump enco_core)
+target_link_libraries(encodump stdex)
 target_link_libraries(encodump dl)
index 3cf3f0a..aab8f35 100644 (file)
@@ -137,7 +137,7 @@ private:
 
 } // namespace
 
-#include <nncc/foundation/Memory.h>
+#include <stdex/Memory.h>
 
 #include <map>
 
@@ -163,7 +163,7 @@ static int entry(int argc, char **argv)
   std::map<std::string, std::function<void(const std::string &arg)>> argparse;
 
   argparse["--frontend"] = [&](const std::string &path) {
-    frontend_zone = nncc::foundation::make_unique<FrontendZone>(path);
+    frontend_zone = stdex::make_unique<FrontendZone>(path);
   };
 
   argparse["--frontend-arg"] = [&](const std::string &arg) { frontend_zone->append(arg); };