diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-04-21 19:36:32 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-04-21 19:36:32 (GMT) |
commit | 7d6090aec41770414c4f8b9fd78823f1322381d8 (patch) | |
tree | b997e1c309ebaa2d3192cc4b55edc43593491fc0 | |
parent | aecba65241ae837759472f1104442d299b42d571 (diff) | |
download | CMake-7d6090aec41770414c4f8b9fd78823f1322381d8.zip CMake-7d6090aec41770414c4f8b9fd78823f1322381d8.tar.gz CMake-7d6090aec41770414c4f8b9fd78823f1322381d8.tar.bz2 |
cmSystemTools::SaveRestoreEnvironment: make noncopyable
Also, make the destructor non-virtual.
-rw-r--r-- | Source/cmSystemTools.h | 5 |
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 |