diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-01-30 00:15:50 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-01-30 00:15:50 +0000 |
commit | 14a05e62fac082b4d9bdf18e3cc924f6ae3bc03d (patch) | |
tree | d7b7d64824f675a4db226c961eee92848c51c4c1 /libcxx/src/experimental/filesystem | |
parent | a902e7aa941d5a82a44f11a42e4210812cf92d13 (diff) | |
download | bcm5719-llvm-14a05e62fac082b4d9bdf18e3cc924f6ae3bc03d.tar.gz bcm5719-llvm-14a05e62fac082b4d9bdf18e3cc924f6ae3bc03d.zip |
experimental: inline single use of a typedef
The typedef is not particularly long, and used in exactly one location.
Just spell it out at the site. NFC.
llvm-svn: 293450
Diffstat (limited to 'libcxx/src/experimental/filesystem')
-rw-r--r-- | libcxx/src/experimental/filesystem/directory_iterator.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libcxx/src/experimental/filesystem/directory_iterator.cpp b/libcxx/src/experimental/filesystem/directory_iterator.cpp index 66429992086..0e9000b2203 100644 --- a/libcxx/src/experimental/filesystem/directory_iterator.cpp +++ b/libcxx/src/experimental/filesystem/directory_iterator.cpp @@ -24,10 +24,7 @@ inline bool set_or_throw(std::error_code& my_ec, return false; } -typedef path::string_type string_type; - - -inline string_type posix_readdir(DIR *dir_stream, error_code& ec) { +inline path::string_type posix_readdir(DIR *dir_stream, error_code& ec) { struct dirent* dir_entry_ptr = nullptr; errno = 0; // zero errno in order to detect errors if ((dir_entry_ptr = ::readdir(dir_stream)) == nullptr) { |