mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Removed ref from to_string_ in ansicolor sink
This commit is contained in:
parent
9a7a9f6871
commit
2a101ac559
@ -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()};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user