Address PR review comments

This commit is contained in:
Charles Milette
2022-04-25 21:59:56 -04:00
parent 714cf12822
commit 37dd6bb159
4 changed files with 13 additions and 12 deletions

View File

@@ -389,7 +389,7 @@ SPDLOG_INLINE std::string filename_to_str(const filename_t &filename)
{
memory_buf_t buf;
wstr_to_utf8buf(filename, buf);
return fmt_helper::to_string(buf);
return fmt_helper::to_string(std::move(buf));
}
#else
SPDLOG_INLINE std::string filename_to_str(const filename_t &filename)