mirror of
https://github.com/gabime/spdlog.git
synced 2025-03-01 03:35:50 +08:00
Fixed analyzer warnings in ansicolor_sink.cpp
This commit is contained in:
parent
c563b62aea
commit
d6389d696e
@ -77,9 +77,9 @@ private:
|
||||
void sink_it_(const details::log_msg &msg) override;
|
||||
void flush_() override;
|
||||
void set_color_mode_(color_mode mode);
|
||||
void print_ccode_(const string_view_t color_code);
|
||||
void print_range_(const memory_buf_t &formatted, size_t start, size_t end);
|
||||
static std::string to_string_(const string_view_t sv);
|
||||
void print_ccode_(string_view_t color_code) const;
|
||||
void print_range_(const memory_buf_t &formatted, size_t start, size_t end) const;
|
||||
static std::string to_string_(string_view_t sv);
|
||||
};
|
||||
|
||||
template <typename Mutex>
|
||||
|
@ -88,12 +88,12 @@ 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) const {
|
||||
details::os::fwrite_bytes(color_code.data(), color_code.size(), target_file_);
|
||||
}
|
||||
|
||||
template <typename Mutex>
|
||||
void ansicolor_sink<Mutex>::print_range_(const memory_buf_t &formatted, size_t start, size_t end) {
|
||||
void ansicolor_sink<Mutex>::print_range_(const memory_buf_t &formatted, size_t start, size_t end) const {
|
||||
details::os::fwrite_bytes(formatted.data() + start, end - start, target_file_);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user