From e071ccd715a63947d468ac2a2072ab24e037135f Mon Sep 17 00:00:00 2001 From: ClausKlein Date: Mon, 22 Jul 2019 23:14:51 +0200 Subject: [PATCH] keep file formatting correct --- include/spdlog/fmt/bundled/core.h | 3 ++- include/spdlog/sinks/syslog_sink.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/spdlog/fmt/bundled/core.h b/include/spdlog/fmt/bundled/core.h index ca59fcd5..acc62875 100644 --- a/include/spdlog/fmt/bundled/core.h +++ b/include/spdlog/fmt/bundled/core.h @@ -962,7 +962,8 @@ class arg_map { // The list is unsorted, so just return the first matching name. for (entry *it = map_, *end = map_ + size_; it != end; ++it) { if (it->name == name) { - return it->arg; } + return it->arg; + } } return {}; } diff --git a/include/spdlog/sinks/syslog_sink.h b/include/spdlog/sinks/syslog_sink.h index 29a97347..2bb31cd4 100644 --- a/include/spdlog/sinks/syslog_sink.h +++ b/include/spdlog/sinks/syslog_sink.h @@ -20,7 +20,7 @@ class syslog_sink : public base_sink { public: - syslog_sink(std::string ident, int syslog_option, int syslog_facility, bool enable_formatting) + syslog_sink(std::string ident, int syslog_option, int syslog_facility, bool enable_formatting) : enable_formatting_{enable_formatting} , syslog_levels_{{/* spdlog::level::trace */ LOG_DEBUG, /* spdlog::level::debug */ LOG_DEBUG, @@ -44,7 +44,7 @@ public: syslog_sink &operator=(const syslog_sink &) = delete; protected: - void sink_it_(const details::log_msg & msg) override + void sink_it_(const details::log_msg &msg) override { string_view_t payload;