From 86687019f1f9fded6707b6768734e95787e0cba9 Mon Sep 17 00:00:00 2001 From: Ali Alamiri Date: Mon, 25 May 2020 12:00:14 +0100 Subject: [PATCH] Save copy using emplace_back Co-authored-by: tt4g <45120617+tt4g@users.noreply.github.com> --- include/spdlog/details/os-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);