Removed ref from to_string_ in ansicolor sink

This commit is contained in:
Gabi Melman 2023-10-01 15:05:03 +03:00
parent 9a7a9f6871
commit 2a101ac559

View File

@ -87,7 +87,7 @@ void ansicolor_sink<Mutex>::flush_() {
}
template <typename Mutex>
void ansicolor_sink<Mutex>::print_ccode_(const string_view_t &color_code) {
void ansicolor_sink<Mutex>::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<Mutex>::print_range_(const memory_buf_t &formatted, size_t s
}
template <typename Mutex>
std::string ansicolor_sink<Mutex>::to_string_(const string_view_t &sv) {
std::string ansicolor_sink<Mutex>::to_string_(const string_view_t sv) {
return {sv.data(), sv.size()};
}