mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
util: rename variable to avoid shadowing
This commit is contained in:
parent
8b789d8141
commit
9350e13396
@ -80,9 +80,9 @@ template<typename... Args> std::string FormatStringFromLogArgs(const char *fmt,
|
|||||||
std::string _log_msg_; /* Unlikely name to avoid shadowing variables */ \
|
std::string _log_msg_; /* Unlikely name to avoid shadowing variables */ \
|
||||||
try { \
|
try { \
|
||||||
_log_msg_ = tfm::format(__VA_ARGS__); \
|
_log_msg_ = tfm::format(__VA_ARGS__); \
|
||||||
} catch (tinyformat::format_error &e) { \
|
} catch (tinyformat::format_error &fmterr) { \
|
||||||
/* Original format string will have newline so don't add one here */ \
|
/* Original format string will have newline so don't add one here */ \
|
||||||
_log_msg_ = "Error \"" + std::string(e.what()) + "\" while formatting log message: " + FormatStringFromLogArgs(__VA_ARGS__); \
|
_log_msg_ = "Error \"" + std::string(fmterr.what()) + "\" while formatting log message: " + FormatStringFromLogArgs(__VA_ARGS__); \
|
||||||
} \
|
} \
|
||||||
LogPrintStr(_log_msg_); \
|
LogPrintStr(_log_msg_); \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user