From 0d8197cc9d935e0c5116de551bec63cd35f3c0ef Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Fri, 13 May 2022 23:06:11 +0300 Subject: [PATCH] Update common.h Init file event handlers to nullptr --- include/spdlog/common.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 1ea5a903..09ffefbb 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -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 before_open;