Use shared_ptr for devices in DeviceMonitor

This commit is contained in:
pixl
2020-06-17 04:15:00 -04:00
parent 6b895b3015
commit 91954e8a73
5 changed files with 17 additions and 18 deletions

View File

@@ -194,7 +194,7 @@ void RawDevice::stopListener()
interruptRead();
}
void RawDevice::addEventHandler(const std::string &nickname, RawEventHandler &handler)
void RawDevice::addEventHandler(const std::string& nickname, RawEventHandler& handler)
{
auto it = event_handlers.find(nickname);
assert(it == event_handlers.end());