Fix clang-tidy performance-no-automatic-move

This commit is contained in:
Robert Müller 2023-10-05 22:44:27 +02:00
parent 6d71e119a2
commit 05ddf4a081

View file

@ -1565,7 +1565,7 @@ std::string windows_format_system_message(unsigned long error)
if(FormatMessageW(flags, NULL, error, 0, (LPWSTR)&wide_message, 0, NULL) == 0)
return "unknown error";
const std::string message = windows_wide_to_utf8(wide_message);
std::string message = windows_wide_to_utf8(wide_message);
LocalFree(wide_message);
return message;
}