mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-16 00:45:48 +08:00
keep clang-tidy happy
This commit is contained in:
parent
3a61dcd360
commit
4a0f4fc186
@ -66,7 +66,7 @@ SPDLOG_INLINE std::unordered_map<std::string, std::string> extract_key_vals_(con
|
|||||||
{
|
{
|
||||||
std::string token;
|
std::string token;
|
||||||
std::istringstream token_stream(str);
|
std::istringstream token_stream(str);
|
||||||
std::unordered_map<std::string, std::string> rv;
|
std::unordered_map<std::string, std::string> rv{};
|
||||||
while (std::getline(token_stream, token, ','))
|
while (std::getline(token_stream, token, ','))
|
||||||
{
|
{
|
||||||
if (token.empty())
|
if (token.empty())
|
||||||
@ -107,7 +107,6 @@ inline details::registry::logger_levels extract_levels_(const std::string& input
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SPDLOG_INLINE void load_levels()
|
SPDLOG_INLINE void load_levels()
|
||||||
{
|
{
|
||||||
auto levels = extract_levels_(details::os::getenv("SPDLOG_LEVEL"));
|
auto levels = extract_levels_(details::os::getenv("SPDLOG_LEVEL"));
|
||||||
|
Loading…
Reference in New Issue
Block a user