From d7313a3274be8cdecf14b5a873abfd8252748a20 Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 4 Mar 2020 15:52:42 +0200 Subject: [PATCH] Fix tidy warning --- include/spdlog/sinks/win_eventlog_sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/win_eventlog_sink.h b/include/spdlog/sinks/win_eventlog_sink.h index d9839110..3e858940 100644 --- a/include/spdlog/sinks/win_eventlog_sink.h +++ b/include/spdlog/sinks/win_eventlog_sink.h @@ -73,7 +73,7 @@ struct win32_error : public spdlog_ex return fmt::format("{}: {}{}", user_message, error_code, system_message); } - win32_error(std::string const &func_name, DWORD error = GetLastError()) + explicit win32_error(std::string const &func_name, DWORD error = GetLastError()) : spdlog_ex(format(func_name, error)) {} };