fix: PVS-Studio V508 mark false

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
Vyacheslav Ivanov 2024-08-03 21:05:19 +03:00 • committed by Pugemon
parent 7c8f04aa75
commit 4efa574eec
No known key found for this signature in database
GPG key ID: 472FA343B3CC3287
4 changed files with 6 additions and 6 deletions

View file

@ -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;
});