mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
Fixed tidy warnings
This commit is contained in:
@@ -25,10 +25,10 @@ public:
|
||||
|
||||
void open(const filename_t &fname, bool truncate = false);
|
||||
void reopen(bool truncate);
|
||||
void flush();
|
||||
void sync();
|
||||
void flush() const;
|
||||
void sync() const;
|
||||
void close();
|
||||
void write(const memory_buf_t &buf);
|
||||
void write(const memory_buf_t &buf) const;
|
||||
size_t size() const;
|
||||
const filename_t &filename() const;
|
||||
|
||||
|
@@ -45,7 +45,7 @@ public:
|
||||
// This make the default API faster, but cannot be used concurrently with set_default_logger().
|
||||
// e.g do not call set_default_logger() from one thread while calling spdlog::info() from
|
||||
// another.
|
||||
logger *get_default_raw();
|
||||
logger *get_default_raw() const;
|
||||
|
||||
// set default logger.
|
||||
// default logger is stored in default_logger_ (for faster retrieval) and in the loggers_ map.
|
||||
|
@@ -32,7 +32,7 @@ public:
|
||||
|
||||
void set_color(level color_level, string_view_t color);
|
||||
void set_color_mode(color_mode mode);
|
||||
bool should_color();
|
||||
bool should_color() const;
|
||||
|
||||
// Formatting codes
|
||||
static constexpr std::string_view reset = "\033[m";
|
||||
|
@@ -43,7 +43,7 @@ private:
|
||||
|
||||
// delete the target if exists, and rename the src file to target
|
||||
// return true on success, false otherwise.
|
||||
bool rename_file_(const filename_t &src_filename, const filename_t &target_filename);
|
||||
static bool rename_file_(const filename_t &src_filename, const filename_t &target_filename);
|
||||
|
||||
filename_t base_filename_;
|
||||
std::size_t max_size_;
|
||||
|
Reference in New Issue
Block a user