mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 11:29:01 +08:00
google-explicit-constructor
This commit is contained in:
@@ -26,7 +26,7 @@ template <class Mutex>
|
||||
class ansicolor_sink : public base_sink<Mutex>
|
||||
{
|
||||
public:
|
||||
ansicolor_sink(FILE* file): target_file_(file)
|
||||
explicit ansicolor_sink(FILE* file) : target_file_(file)
|
||||
{
|
||||
should_do_colors_ = details::os::in_terminal(file) && details::os::is_color_terminal();
|
||||
colors_[level::trace] = cyan;
|
||||
|
Reference in New Issue
Block a user