Skip to content

Commit 126f81d

Browse files
committed
[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.
1 parent 5aa8ef8 commit 126f81d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libcxx/src/tzdb.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -677,9 +677,9 @@ void __init_tzdb(tzdb& __tzdb, __tz::__rules_storage_type& __rules) {
677677

678678
__tzdb.version = chrono::__parse_version(__tzdata);
679679
chrono::__parse_tzdata(__tzdb, __rules, __tzdata);
680-
std::ranges::sort(__tzdb.zones);
681-
std::ranges::sort(__tzdb.links);
682-
std::ranges::sort(__rules, {}, [](const auto& p) { return p.first; });
680+
ranges::sort(__tzdb.zones);
681+
ranges::sort(__tzdb.links);
682+
ranges::sort(__rules, {}, [](const auto& p) { return p.first; });
683683

684684
// There are two files with the leap second information
685685
// - leapseconds as specified by zic
@@ -724,10 +724,10 @@ void __init_tzdb(tzdb& __tzdb, __tz::__rules_storage_type& __rules) {
724724
return __result;
725725

726726
filesystem::path __path = "/etc/localtime";
727-
if (!std::filesystem::exists(__path))
727+
if (!filesystem::exists(__path))
728728
std::__throw_runtime_error("tzdb: the symlink '/etc/localtime' does not exist");
729729

730-
if (!std::filesystem::is_symlink(__path))
730+
if (!filesystem::is_symlink(__path))
731731
std::__throw_runtime_error("tzdb: the path '/etc/localtime' is not a symlink");
732732

733733
filesystem::path __tz = filesystem::read_symlink(__path);

0 commit comments

Comments
 (0)