summaryrefslogtreecommitdiff
path: root/Source/cmFileLock.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmFileLock.h')
-rw-r--r--Source/cmFileLock.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmFileLock.h b/Source/cmFileLock.h
index 491a40b84d..2130d65dbe 100644
--- a/Source/cmFileLock.h
+++ b/Source/cmFileLock.h
@@ -21,12 +21,13 @@ class cmFileLockResult;
*/
class cmFileLock
{
- CM_DISABLE_COPY(cmFileLock)
-
public:
cmFileLock();
~cmFileLock();
+ cmFileLock(cmFileLock const&) = delete;
+ cmFileLock& operator=(cmFileLock const&) = delete;
+
/**
* @brief Lock the file.
* @param timeoutSec Lock timeout. If -1 try until success or fatal error.