From 6d5670fde77047ed897d2f8382ec72c212cc8c5c Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 13 Jun 2018 20:19:13 +0300 Subject: [PATCH] format --- include/spdlog/common.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 9135368f..4b5f3b59 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -9,13 +9,13 @@ #include "spdlog/tweakme.h" +#include #include #include -#include #include -#include #include #include +#include #include #include @@ -147,11 +147,18 @@ enum class pattern_time_type class spdlog_ex : public std::runtime_error { public: - explicit spdlog_ex(const std::string& msg) : runtime_error(msg){} - spdlog_ex(const std::string& msg, int last_errno) : runtime_error(msg), last_errno_(last_errno){} + explicit spdlog_ex(const std::string &msg) + : runtime_error(msg) + { + } + spdlog_ex(const std::string &msg, int last_errno) + : runtime_error(msg) + , last_errno_(last_errno) + { + } const char *what() const SPDLOG_NOEXCEPT override { - if(last_errno_) + if (last_errno_) { fmt::memory_buffer buf; std::string msg(runtime_error::what()); @@ -166,7 +173,6 @@ public: private: int last_errno_{0}; - }; //