From 97681c8807c50396537356a7f29ea0a8a7c9ad9e Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 5 Dec 2024 15:27:31 +0800 Subject: [PATCH] fix IsEmpty is const --- src/sled/event_bus/event_bus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sled/event_bus/event_bus.h b/src/sled/event_bus/event_bus.h index 7b68f5a..ac4b15d 100644 --- a/src/sled/event_bus/event_bus.h +++ b/src/sled/event_bus/event_bus.h @@ -80,7 +80,7 @@ public: if (dispatcher.is_empty()) { signals_.erase(iter); } } - bool IsEmpty(EventBus *bus) const + bool IsEmpty(EventBus *bus) { sled::SharedMutexReadLock lock(&shared_mutex_); auto iter = signals_.find(bus);