Save basic_string copy

Co-authored-by: tt4g <45120617+tt4g@users.noreply.github.com>
pull/1567/head
Ali Alamiri 5 years ago committed by GitHub
parent e18d277d27
commit b633f26a7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -605,11 +605,14 @@ SPDLOG_INLINE std::vector<std::string> get_directory_files(const std::string &di
while ((ent = readdir(dir)) != nullptr)
{
const std::string file_name = ent->d_name;
const std::string full_file_name = directory + "/" + file_name;
const std::string file_name::value_type* = ent->d_name;
if (file_name[0] == '.')
{
continue;
}
const std::string full_file_name = directory + "/" + file_name;
if (::stat(full_file_name.c_str(), &st) == -1)
continue;

Loading…
Cancel
Save