From 4cb6845ac172b791fe9e8b7e8e26a8621ed3ad13 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 24 May 2018 19:11:05 -0700 Subject: [PATCH] ircd::fs: Use vector_view for make_path related. --- include/ircd/fs/fs.h | 2 +- ircd/fs.cc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ircd/fs/fs.h b/include/ircd/fs/fs.h index 696a7f637..8c7797527 100644 --- a/include/ircd/fs/fs.h +++ b/include/ircd/fs/fs.h @@ -68,7 +68,7 @@ namespace ircd::fs const char *get(index) noexcept; const char *name(index) noexcept; - std::string make_path(const std::initializer_list &); + std::string make_path(const vector_view &); bool exists(const string_view &path); bool is_dir(const string_view &path); diff --git a/ircd/fs.cc b/ircd/fs.cc index cdfd7e9aa..d2c406e66 100644 --- a/ircd/fs.cc +++ b/ircd/fs.cc @@ -25,7 +25,7 @@ namespace ircd::fs filesystem::path path(std::string); filesystem::path path(const string_view &); - filesystem::path path(const std::initializer_list &); + filesystem::path path(const vector_view &); } /// Non-null when aio is available for use @@ -457,7 +457,7 @@ catch(const filesystem::filesystem_error &e) } std::string -ircd::fs::make_path(const std::initializer_list &list) +ircd::fs::make_path(const vector_view &list) { filesystem::path ret; for(const auto &s : list) @@ -467,7 +467,7 @@ ircd::fs::make_path(const std::initializer_list &list) } filesystem::path -ircd::fs::path(const std::initializer_list &list) +ircd::fs::path(const vector_view &list) { filesystem::path ret; for(const auto &s : list)