mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Update common.h
Init file event handlers to nullptr
This commit is contained in:
parent
e36b69a0ec
commit
0d8197cc9d
@ -307,10 +307,10 @@ struct source_loc
|
||||
struct file_event_handlers
|
||||
{
|
||||
file_event_handlers()
|
||||
: before_open([](spdlog::filename_t) {})
|
||||
, after_open ([](spdlog::filename_t, std::FILE*) {})
|
||||
, before_close([](spdlog::filename_t, std::FILE*) {})
|
||||
, after_close([](spdlog::filename_t) {})
|
||||
: before_open(nullptr)
|
||||
, after_open (nullptr)
|
||||
, before_close(nullptr)
|
||||
, after_close(nullptr)
|
||||
{}
|
||||
|
||||
std::function<void(const filename_t &filename)> before_open;
|
||||
|
Loading…
Reference in New Issue
Block a user