From 963f8d34852c76d34ca0c4d17da4d7180c7e0e32 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 21 Mar 2020 15:25:05 +0200 Subject: [PATCH] Fixed tests --- include/spdlog/sinks/ansicolor_sink-inl.h | 2 +- tests/test_pattern_formatter.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/spdlog/sinks/ansicolor_sink-inl.h b/include/spdlog/sinks/ansicolor_sink-inl.h index a75dfa10..288aeced 100644 --- a/include/spdlog/sinks/ansicolor_sink-inl.h +++ b/include/spdlog/sinks/ansicolor_sink-inl.h @@ -7,7 +7,7 @@ #include #endif -#include +#include #include namespace spdlog { diff --git a/tests/test_pattern_formatter.cpp b/tests/test_pattern_formatter.cpp index 42ce40e7..720241fe 100644 --- a/tests/test_pattern_formatter.cpp +++ b/tests/test_pattern_formatter.cpp @@ -308,9 +308,7 @@ TEST_CASE("clone-formatter-2", "[pattern_formatter]") class custom_test_flag : public spdlog::custom_flag_formatter { public: - class custom_test_flag(std::string txt) - : some_txt{std::move(txt)} - {} + custom_test_flag(std::string txt) : some_txt{std::move(txt)} {} void format(const spdlog::details::log_msg &, const std::tm &, spdlog::memory_buf_t &dest) override {