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
This commit is contained in:
Saleem Abdulrasool 2017-01-30 00:15:50 +00:00
parent a902e7aa94
commit 14a05e62fa
1 changed files with 1 additions and 4 deletions

View File

@ -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) {