From 62a881fbebcb76533874098fba7c6dc2a5cfa470 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Wed, 31 Jul 2024 18:43:29 +0200 Subject: [PATCH] refactor(builtin_script): use fs namespace alias --- src/dwarfs/builtin_script.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dwarfs/builtin_script.cpp b/src/dwarfs/builtin_script.cpp index fc54d344..d5ce4b50 100644 --- a/src/dwarfs/builtin_script.cpp +++ b/src/dwarfs/builtin_script.cpp @@ -36,6 +36,8 @@ namespace dwarfs { namespace internal { +namespace fs = std::filesystem; + struct filter_rule { enum class rule_type { include, @@ -60,7 +62,7 @@ class builtin_script_ : public builtin_script::impl { public: builtin_script_(logger& lgr, std::shared_ptr fa); - void set_root_path(std::filesystem::path const& path) override; + void set_root_path(fs::path const& path) override; void add_filter_rule(std::string const& rule) override; void add_filter_rules(std::istream& is) override; @@ -189,7 +191,7 @@ builtin_script_::builtin_script_( template void builtin_script_::set_root_path( - std::filesystem::path const& path) { + fs::path const& path) { // TODO: this whole thing needs to be windowsized root_path_ = u8string_to_string(path.u8string());