diff options
author | stickies-v <stickies-v@protonmail.com> | 2022-08-31 16:30:35 +0100 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2022-09-13 19:07:39 +0100 |
commit | 97f5b20c12ca6ccf89d7720a5d41eaf4cda1b695 (patch) | |
tree | fee87877bc54e805480a708002716467e9a82652 /src/util/system.cpp | |
parent | 29d540b7ada890dd588c4825d40c27c5e6f20061 (diff) | |
download | bitcoin-97f5b20c12ca6ccf89d7720a5d41eaf4cda1b695.tar.xz |
refactor: use std::string for thread names
Diffstat (limited to 'src/util/system.cpp')
-rw-r--r-- | src/util/system.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp index 1953a9f836..8864ae73c4 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -831,7 +831,7 @@ std::string HelpMessageOpt(const std::string &option, const std::string &message std::string("\n\n"); } -static std::string FormatException(const std::exception* pex, const char* pszThread) +static std::string FormatException(const std::exception* pex, std::string_view pszThread) { #ifdef WIN32 char pszModule[MAX_PATH] = ""; @@ -847,7 +847,7 @@ static std::string FormatException(const std::exception* pex, const char* pszThr "UNKNOWN EXCEPTION \n%s in %s \n", pszModule, pszThread); } -void PrintExceptionContinue(const std::exception* pex, const char* pszThread) +void PrintExceptionContinue(const std::exception* pex, std::string_view pszThread) { std::string message = FormatException(pex, pszThread); LogPrintf("\n\n************************\n%s\n", message); |