Update common.h

Init file event handlers to nullptr
This commit is contained in:
Gabi Melman 2022-05-13 23:06:11 +03:00 committed by GitHub
parent e36b69a0ec
commit 0d8197cc9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;