mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Event: Store device as weak pointer
This commit is contained in:
@@ -56,7 +56,7 @@ public:
|
||||
APIEvent getLastError();
|
||||
|
||||
void add(APIEvent event);
|
||||
void add(APIEvent::Type type, APIEvent::Severity severity, const Device* forDevice = nullptr) {
|
||||
void add(APIEvent::Type type, APIEvent::Severity severity, std::weak_ptr<Device> forDevice = {}) {
|
||||
add(APIEvent(type, severity, forDevice));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user