summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 19:36:32 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 19:36:32 (GMT)
commit7d6090aec41770414c4f8b9fd78823f1322381d8 (patch)
treeb997e1c309ebaa2d3192cc4b55edc43593491fc0 /Source
parentaecba65241ae837759472f1104442d299b42d571 (diff)
downloadCMake-7d6090aec41770414c4f8b9fd78823f1322381d8.zip
CMake-7d6090aec41770414c4f8b9fd78823f1322381d8.tar.gz
CMake-7d6090aec41770414c4f8b9fd78823f1322381d8.tar.bz2
cmSystemTools::SaveRestoreEnvironment: make noncopyable
Also, make the destructor non-virtual.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSystemTools.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index a8a9995..3ba2c22 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -381,9 +381,12 @@ public:
{
public:
SaveRestoreEnvironment();
- virtual ~SaveRestoreEnvironment();
+ ~SaveRestoreEnvironment();
private:
+ SaveRestoreEnvironment(SaveRestoreEnvironment const&);
+ SaveRestoreEnvironment& operator=(SaveRestoreEnvironment const&);
+
std::vector<std::string> Env;
};
#endif