From 2a101ac559ac61dfc7de59560a6a47e06622a97b Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 1 Oct 2023 15:05:03 +0300 Subject: [PATCH] Removed ref from to_string_ in ansicolor sink --- src/sinks/ansicolor_sink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sinks/ansicolor_sink.cpp b/src/sinks/ansicolor_sink.cpp index 9198feae..b100f7ac 100644 --- a/src/sinks/ansicolor_sink.cpp +++ b/src/sinks/ansicolor_sink.cpp @@ -87,7 +87,7 @@ void ansicolor_sink::flush_() { } template -void ansicolor_sink::print_ccode_(const string_view_t &color_code) { +void ansicolor_sink::print_ccode_(const string_view_t color_code) { fwrite(color_code.data(), sizeof(char), color_code.size(), target_file_); } @@ -97,7 +97,7 @@ void ansicolor_sink::print_range_(const memory_buf_t &formatted, size_t s } template -std::string ansicolor_sink::to_string_(const string_view_t &sv) { +std::string ansicolor_sink::to_string_(const string_view_t sv) { return {sv.data(), sv.size()}; }