diff options
author | Brad King <brad.king@kitware.com> | 2020-03-25 11:47:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-03-25 11:47:51 (GMT) |
commit | 5f8d1668a2fab9697a4d1caa7cb6f44627082735 (patch) | |
tree | 2b2c4ee0dcd652039291e8dc67a5892c2384598d /Source/kwsys/Directory.cxx | |
parent | 69e495d10adeb7a9872f1698b60367e57e657fee (diff) | |
parent | 9d3b9ec4ab1a2756c54f2af2b418b8818268c964 (diff) | |
download | CMake-5f8d1668a2fab9697a4d1caa7cb6f44627082735.zip CMake-5f8d1668a2fab9697a4d1caa7cb6f44627082735.tar.gz CMake-5f8d1668a2fab9697a4d1caa7cb6f44627082735.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
KWSys 2020-03-25 (4380f1ae)
Diffstat (limited to 'Source/kwsys/Directory.cxx')
-rw-r--r-- | Source/kwsys/Directory.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/kwsys/Directory.cxx b/Source/kwsys/Directory.cxx index 1a772b4..d640948 100644 --- a/Source/kwsys/Directory.cxx +++ b/Source/kwsys/Directory.cxx @@ -35,6 +35,18 @@ Directory::Directory() this->Internal = new DirectoryInternals; } +Directory::Directory(Directory&& other) +{ + this->Internal = other.Internal; + other.Internal = nullptr; +} + +Directory& Directory::operator=(Directory&& other) +{ + std::swap(this->Internal, other.Internal); + return *this; +} + Directory::~Directory() { delete this->Internal; |