mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 01:28:57 +00:00
Common: Remove TLS usage in GetLastErrorMsg
Just return std::string as this code isn't performance critical.
This commit is contained in:
parent
4796dc80bf
commit
ef6bdf674f
5 changed files with 28 additions and 35 deletions
|
@ -16,6 +16,7 @@
|
|||
#endif
|
||||
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
|
@ -115,7 +116,7 @@ extern "C"
|
|||
// Call directly after the command or use the error num.
|
||||
// This function might change the error code.
|
||||
// Defined in Misc.cpp.
|
||||
const char* GetLastErrorMsg();
|
||||
std::string GetLastErrorMsg();
|
||||
|
||||
namespace Common
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue