diff options
author | Chris Robinson <[email protected]> | 2022-01-18 11:45:08 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-01-18 11:45:08 -0800 |
commit | 4920167fa0c90b276459107c18a67cf64bd11c4d (patch) | |
tree | 7e26460be2f5255f417be6a65ba8b22c75ae7914 /core/dbus_wrap.h | |
parent | 6f60e7a452083bfd30dc9b678133bc4ef4b67c2a (diff) |
Avoid passing a function pointer to std::call_once
Diffstat (limited to 'core/dbus_wrap.h')
-rw-r--r-- | core/dbus_wrap.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |