diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-01-27 11:29:21 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-01-27 15:33:00 +0000 |
commit | def6e12e3488557dde9665db620ca53f9424713e (patch) | |
tree | d1d12726ed5a94d2db7528d6efeac137d364696e /libstdc++-v3/src | |
parent | 3adf6dd508491d26e21840a8a70b016f876edd53 (diff) | |
download | gcc-def6e12e3488557dde9665db620ca53f9424713e.zip gcc-def6e12e3488557dde9665db620ca53f9424713e.tar.gz gcc-def6e12e3488557dde9665db620ca53f9424713e.tar.bz2 |
libstdc++: Use constant for name of tzdata file
There's a string_view with this filename, which should have been used
instead of a string literal.
libstdc++-v3/ChangeLog:
* src/c++20/tzdb.cc (tzdata_stream): Use constant instead of
string literal.
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/c++20/tzdb.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc index c956e86..2e7e173 100644 --- a/libstdc++-v3/src/c++20/tzdb.cc +++ b/libstdc++-v3/src/c++20/tzdb.cc @@ -1106,7 +1106,7 @@ namespace std::chrono tzdata_stream() : istream(nullptr) { - if (string path = zoneinfo_file("/tzdata.zi"); !path.empty()) + if (string path = zoneinfo_file(tzdata_file); !path.empty()) { filebuf fbuf; if (fbuf.open(path, std::ios::in)) |