fix: PVS-Studio V508 mark false
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
@@ -48,7 +48,7 @@ public:
|
||||
if (callOnStart) {
|
||||
callback(value);
|
||||
}
|
||||
return std::shared_ptr<int>(new int(id), [this](int* id) {
|
||||
return std::shared_ptr<int>(new int(id), [this](int* id) { //-V508
|
||||
observers.erase(*id);
|
||||
delete id;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user