Commit 92921f76 authored by gabime's avatar gabime

clang-format

parent c251c4cc
...@@ -111,7 +111,7 @@ enum level_enum ...@@ -111,7 +111,7 @@ enum level_enum
static string_view_t level_string_views[] SPDLOG_LEVEL_NAMES; static string_view_t level_string_views[] SPDLOG_LEVEL_NAMES;
static const char *short_level_names[]{"T", "D", "I", "W", "E", "C", "O"}; static const char *short_level_names[]{"T", "D", "I", "W", "E", "C", "O"};
inline string_view_t& to_string_view(spdlog::level::level_enum l) SPDLOG_NOEXCEPT inline string_view_t &to_string_view(spdlog::level::level_enum l) SPDLOG_NOEXCEPT
{ {
return level_string_views[l]; return level_string_views[l];
} }
...@@ -124,9 +124,9 @@ inline const char *to_short_c_str(spdlog::level::level_enum l) SPDLOG_NOEXCEPT ...@@ -124,9 +124,9 @@ inline const char *to_short_c_str(spdlog::level::level_enum l) SPDLOG_NOEXCEPT
inline spdlog::level::level_enum from_str(const std::string &name) SPDLOG_NOEXCEPT inline spdlog::level::level_enum from_str(const std::string &name) SPDLOG_NOEXCEPT
{ {
int level = 0; int level = 0;
for(const auto &level_str : level_string_views) for (const auto &level_str : level_string_views)
{ {
if(level_str == name) if (level_str == name)
{ {
return static_cast<level::level_enum>(level); return static_cast<level::level_enum>(level);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment