Merge pull request #9605 from Icinga/no-objectlock-copy

Prevent ObjectLock from being copied
This commit is contained in:
Alexander Aleksandrovič Klimov 2022-12-08 20:00:23 +01:00 committed by GitHub
commit 4b754637f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,9 @@ public:
ObjectLock(const Object::Ptr& object);
ObjectLock(const Object *object);
ObjectLock(const ObjectLock&) = delete;
ObjectLock& operator=(const ObjectLock&) = delete;
~ObjectLock();
void Lock();