diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-04-23 20:50:47 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-04-24 20:03:06 (GMT) |
commit | d6f0006c0b12c74df2d93170262a017f15949320 (patch) | |
tree | 79e25c4662deb2b4875daca4bca61bc9e9cc4dbe /Source/cmFileLockPool.h | |
parent | 3cb7048b521395fdc863dacacb85c6f7f28a1bc7 (diff) | |
download | CMake-d6f0006c0b12c74df2d93170262a017f15949320.zip CMake-d6f0006c0b12c74df2d93170262a017f15949320.tar.gz CMake-d6f0006c0b12c74df2d93170262a017f15949320.tar.bz2 |
Use CM_DISABLE_COPY
Diffstat (limited to 'Source/cmFileLockPool.h')
-rw-r--r-- | Source/cmFileLockPool.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/cmFileLockPool.h b/Source/cmFileLockPool.h index 09c984c..689ddd7 100644 --- a/Source/cmFileLockPool.h +++ b/Source/cmFileLockPool.h @@ -3,7 +3,7 @@ #ifndef cmFileLockPool_h #define cmFileLockPool_h -#include "cmConfigure.h" // IWYU pragma: keep +#include "cmConfigure.h" #include <list> #include <string> @@ -13,6 +13,8 @@ class cmFileLockResult; class cmFileLockPool { + CM_DISABLE_COPY(cmFileLockPool) + public: cmFileLockPool(); ~cmFileLockPool(); @@ -52,13 +54,12 @@ public: cmFileLockResult Release(const std::string& filename); private: - cmFileLockPool(const cmFileLockPool&); - cmFileLockPool& operator=(const cmFileLockPool&); - bool IsAlreadyLocked(const std::string& filename) const; class ScopePool { + CM_DISABLE_COPY(ScopePool) + public: ScopePool(); ~ScopePool(); @@ -69,9 +70,6 @@ private: bool IsAlreadyLocked(const std::string& filename) const; private: - ScopePool(const ScopePool&); - ScopePool& operator=(const ScopePool&); - typedef std::list<cmFileLock*> List; typedef List::iterator It; typedef List::const_iterator CIt; |