diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index 7b2198f8..566cf8e4 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -622,7 +622,7 @@ SPDLOG_INLINE std::vector get_directory_files(const std::string &di if (is_directory) continue; - files.push_back(full_file_name); + files.emplace_back(std::move(full_file_name)); } closedir(dir);