diff options
author | Mark de Wever <koraq@xs4all.nl> | 2024-07-06 12:02:23 +0200 |
---|---|---|
committer | Mark de Wever <koraq@xs4all.nl> | 2024-07-06 12:02:45 +0200 |
commit | 126f81dd5a804636e4b66146d2d039099d9d5889 (patch) | |
tree | 9b42a22bf6ef88ea6029336bd125372b01f8b620 | |
parent | 5aa8ef8e9b05b714550eedbced34f67f225dbe6f (diff) | |
download | llvm-126f81dd5a804636e4b66146d2d039099d9d5889.zip llvm-126f81dd5a804636e4b66146d2d039099d9d5889.tar.gz llvm-126f81dd5a804636e4b66146d2d039099d9d5889.tar.bz2 |
[NFC][libc++] removes std:: qualification,
Elements in nested namespaces in the std namespace do not use fully
qualified names in libc++. This adjusts a few cases found.
-rw-r--r-- | libcxx/src/tzdb.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/src/tzdb.cpp b/libcxx/src/tzdb.cpp index 2d07796..d22de21 100644 --- a/libcxx/src/tzdb.cpp +++ b/libcxx/src/tzdb.cpp @@ -677,9 +677,9 @@ void __init_tzdb(tzdb& __tzdb, __tz::__rules_storage_type& __rules) { __tzdb.version = chrono::__parse_version(__tzdata); chrono::__parse_tzdata(__tzdb, __rules, __tzdata); - std::ranges::sort(__tzdb.zones); - std::ranges::sort(__tzdb.links); - std::ranges::sort(__rules, {}, [](const auto& p) { return p.first; }); + ranges::sort(__tzdb.zones); + ranges::sort(__tzdb.links); + ranges::sort(__rules, {}, [](const auto& p) { return p.first; }); // There are two files with the leap second information // - leapseconds as specified by zic @@ -724,10 +724,10 @@ void __init_tzdb(tzdb& __tzdb, __tz::__rules_storage_type& __rules) { return __result; filesystem::path __path = "/etc/localtime"; - if (!std::filesystem::exists(__path)) + if (!filesystem::exists(__path)) std::__throw_runtime_error("tzdb: the symlink '/etc/localtime' does not exist"); - if (!std::filesystem::is_symlink(__path)) + if (!filesystem::is_symlink(__path)) std::__throw_runtime_error("tzdb: the path '/etc/localtime' is not a symlink"); filesystem::path __tz = filesystem::read_symlink(__path); |