From 38c0ee018b3210770defcb1620154ba7b63b25cd Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 15 May 2016 01:49:15 +0300 Subject: [PATCH] astyle --- include/spdlog/details/file_helper.h | 4 ++-- include/spdlog/details/os.h | 6 +++--- include/spdlog/sinks/file_sinks.h | 4 ++-- include/spdlog/spdlog.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/spdlog/details/file_helper.h b/include/spdlog/details/file_helper.h index 524c3b71..a465c4d9 100644 --- a/include/spdlog/details/file_helper.h +++ b/include/spdlog/details/file_helper.h @@ -25,7 +25,7 @@ namespace details class file_helper { - + public: const int open_tries = 5; const int open_interval = 10; @@ -128,7 +128,7 @@ public: private: FILE* _fd; - filename_t _filename; + filename_t _filename; bool _force_flush; }; } diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h index 8ebfcafc..6001a49b 100644 --- a/include/spdlog/details/os.h +++ b/include/spdlog/details/os.h @@ -235,14 +235,14 @@ inline size_t thread_id() #define SPDLOG_FILENAME_T(s) L ## s inline std::string filename_to_str(const filename_t& filename) { - std::wstring_convert, wchar_t> c; - return c.to_bytes(filename); + std::wstring_convert, wchar_t> c; + return c.to_bytes(filename); } #else #define SPDLOG_FILENAME_T(s) s inline std::string filename_to_str(const filename_t& filename) { - return filename; + return filename; } #endif diff --git a/include/spdlog/sinks/file_sinks.h b/include/spdlog/sinks/file_sinks.h index ba3b0c5a..14b3cbff 100644 --- a/include/spdlog/sinks/file_sinks.h +++ b/include/spdlog/sinks/file_sinks.h @@ -20,7 +20,7 @@ namespace spdlog { namespace sinks -{ +{ /* * Trivial file sink with single file as target */ @@ -108,7 +108,7 @@ private: void _rotate() { - using details::os::filename_to_str; + using details::os::filename_to_str; _file_helper.close(); for (auto i = _max_files; i > 0; --i) { diff --git a/include/spdlog/spdlog.h b/include/spdlog/spdlog.h index 5790afd2..043e8141 100644 --- a/include/spdlog/spdlog.h +++ b/include/spdlog/spdlog.h @@ -19,7 +19,7 @@ namespace spdlog { - + // Return an existing logger or nullptr if a logger with such name doesn't exist. // Examples: //