From 1979b011ae7ba83f29282355b64063ffabecea55 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 8 Feb 2018 19:08:36 +0800 Subject: [PATCH] test/admin_socket_output: no need to create a copy of fs::path Signed-off-by: Kefu Chai --- src/test/admin_socket_output.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/admin_socket_output.cc b/src/test/admin_socket_output.cc index 7b2f224f264..89db393f65d 100644 --- a/src/test/admin_socket_output.cc +++ b/src/test/admin_socket_output.cc @@ -76,7 +76,7 @@ bool AdminSocketOutput::init_sockets() { std::cout << "Initialising sockets" << std::endl; for (const auto &x : fs::directory_iterator(socketdir)) { std::cout << x.path() << std::endl; - if (fs::path(x.path()).extension() == ".asok") { + if (x.path().extension() == ".asok") { for (auto &target : targets) { if (std::regex_search(x.path().filename().string(), std::regex(prefix + target + R"(\..*\.asok)"))) { -- 2.47.3