mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
HookableEvents: Add [[nodiscard]] to Register
This commit is contained in:
@ -91,7 +91,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
// Returns a handle that will unregister the listener when destroyed.
|
// Returns a handle that will unregister the listener when destroyed.
|
||||||
static EventHook Register(CallbackType callback, std::string name)
|
[[nodiscard]] static EventHook Register(CallbackType callback, std::string name)
|
||||||
{
|
{
|
||||||
auto& storage = GetStorage();
|
auto& storage = GetStorage();
|
||||||
std::lock_guard lock(storage.m_mutex);
|
std::lock_guard lock(storage.m_mutex);
|
||||||
|
Reference in New Issue
Block a user