From 275167d1b0ab92cc14fb50cc83bf6d7e0d486de5 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 15 Oct 2018 16:19:12 +0300 Subject: [PATCH] Micro optimize eol in formatter --- include/spdlog/details/pattern_formatter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/pattern_formatter.h b/include/spdlog/details/pattern_formatter.h index a35564be..ad6ef9a4 100644 --- a/include/spdlog/details/pattern_formatter.h +++ b/include/spdlog/details/pattern_formatter.h @@ -571,7 +571,7 @@ public: f->format(msg, cached_tm_, dest); } // write eol - details::fmt_helper::append_str(eol_, dest); + details::fmt_helper::append_c_str(eol_.c_str(), dest); } private: