Use CM_DISABLE_COPY

This commit is contained in:
Daniel Pfeifer
2017-04-23 22:50:47 +02:00
parent 3cb7048b52
commit d6f0006c0b
45 changed files with 99 additions and 140 deletions
+5 -7
View File
@@ -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;