mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
fix: PVS-Studio V508 mark false
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
7c8f04aa75
commit
4efa574eec
4 changed files with 6 additions and 6 deletions
|
|
@ -16,7 +16,7 @@ namespace util {
|
|||
observer_handler add(runnable callback) {
|
||||
int id = nextid++;
|
||||
runnables[id] = std::move(callback);
|
||||
return observer_handler(new int(id), [this](int* id) {
|
||||
return observer_handler(new int(id), [this](int* id) { //-V508
|
||||
runnables.erase(*id);
|
||||
delete id;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue