From 23b1c4c07930dce940e7de454ac702fd966a1b21 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 17 Jan 2025 22:35:23 +0200 Subject: [PATCH] Revert "Small code removal" This reverts commit b01f15cb26036c1168a9c1222d0b65afec21f475. --- src/pattern_formatter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pattern_formatter.cpp b/src/pattern_formatter.cpp index 04723fb9..0456121e 100644 --- a/src/pattern_formatter.cpp +++ b/src/pattern_formatter.cpp @@ -65,9 +65,7 @@ public: } private: - void pad_it(long count) { - dest_.append(spaces_.data(), spaces_.data() + static_cast(count)); - } + void pad_it(long count) { fmt_helper::append_string_view(string_view_t(spaces_.data(), static_cast(count)), dest_); } const padding_info &padinfo_; memory_buf_t &dest_;