mirror of
https://github.com/gelldur/EventBus.git
synced 2024-12-26 10:41:01 +08:00
Fix TagEventBus::get()
In some cases we could move our shared_ptr by mistake
This commit is contained in:
parent
2bb9c3e679
commit
f986c6c675
@ -84,7 +84,7 @@ public:
|
||||
return _allBus.processLimit(maxCountOfEvents);
|
||||
}
|
||||
|
||||
std::shared_ptr<EventBus<Strategy>>& get(const std::string& tag)
|
||||
const std::shared_ptr<EventBus<Strategy>>& get(const std::string& tag)
|
||||
{
|
||||
return _tagToBus.at(tag);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user