Common: Remove TLS usage in GetLastErrorMsg

Just return std::string as this code isn't performance critical.
This commit is contained in:
degasus
2015-04-07 22:15:21 +02:00
parent 4796dc80bf
commit ef6bdf674f
5 changed files with 28 additions and 35 deletions

View File

@ -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
{