From 4920167fa0c90b276459107c18a67cf64bd11c4d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 18 Jan 2022 11:45:08 -0800 Subject: Avoid passing a function pointer to std::call_once --- core/dbus_wrap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/dbus_wrap.h') diff --git a/core/dbus_wrap.h b/core/dbus_wrap.h index 61dbb971..298ce09a 100644 --- a/core/dbus_wrap.h +++ b/core/dbus_wrap.h @@ -39,7 +39,7 @@ void PrepareDBus(); inline auto HasDBus() { static std::once_flag init_dbus{}; - std::call_once(init_dbus, PrepareDBus); + std::call_once(init_dbus, []{ PrepareDBus(); }); return dbus_handle; } -- cgit v1.2.3