Amend clumsy code

This commit is contained in:
Victor Krasnov 2023-09-01 13:23:54 +03:00
parent 406d61f9c8
commit 27b0190c72

View File

@ -46,7 +46,7 @@ static std::string renderFileNameTemplate(time_t now, const std::string & file_p
std::tm buf;
localtime_r(&now, &buf);
std::ostringstream ss; // STYLE_CHECK_ALLOW_STD_STRING_STREAM
ss << std::put_time(&buf, file_path.c_str());
ss << std::put_time(&buf, path.filename().c_str());
return path.replace_filename(ss.str());
}