clang-tidy: Use = delete

This commit is contained in:
Regina Pfeifer
2019-01-23 20:30:01 +01:00
committed by Brad King
parent d75fec5a88
commit b05b778a2d
58 changed files with 209 additions and 139 deletions

View File

@@ -13,12 +13,13 @@ class cmFileLockResult;
class cmFileLockPool
{
CM_DISABLE_COPY(cmFileLockPool)
public:
cmFileLockPool();
~cmFileLockPool();
cmFileLockPool(cmFileLockPool const&) = delete;
cmFileLockPool& operator=(cmFileLockPool const&) = delete;
//@{
/**
* @brief Function scope control.
@@ -58,12 +59,13 @@ private:
class ScopePool
{
CM_DISABLE_COPY(ScopePool)
public:
ScopePool();
~ScopePool();
ScopePool(ScopePool const&) = delete;
ScopePool& operator=(ScopePool const&) = delete;
cmFileLockResult Lock(const std::string& filename,
unsigned long timeoutSec);
cmFileLockResult Release(const std::string& filename);