mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix clang-tidy performance-no-automatic-move
This commit is contained in:
parent
6d71e119a2
commit
05ddf4a081
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue