summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Directory.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-04 13:00:24 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-04 13:00:24 (GMT)
commit9e6b07f5ffb5aed4d6bfb9b04cd18631375f51a7 (patch)
tree8ad87f5fb9db404a5d1e954a88cb83326da328fc /Source/kwsys/Directory.cxx
parentd674c3a5bc7599ad5cd974c13b655a7d36d9c5c9 (diff)
parentec33e3600ccda8f6b8c97a70b57715af331b41e6 (diff)
downloadCMake-9e6b07f5ffb5aed4d6bfb9b04cd18631375f51a7.zip
CMake-9e6b07f5ffb5aed4d6bfb9b04cd18631375f51a7.tar.gz
CMake-9e6b07f5ffb5aed4d6bfb9b04cd18631375f51a7.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream * upstream-KWSys: KWSys 2020-03-04 (6af2e592)
Diffstat (limited to 'Source/kwsys/Directory.cxx')
-rw-r--r--Source/kwsys/Directory.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/Directory.cxx b/Source/kwsys/Directory.cxx
index e379182..1a772b4 100644
--- a/Source/kwsys/Directory.cxx
+++ b/Source/kwsys/Directory.cxx
@@ -204,15 +204,15 @@ bool Directory::Load(const std::string& name)
DIR* dir = opendir(name.c_str());
if (!dir) {
- return 0;
+ return false;
}
for (kwsys_dirent* d = readdir(dir); d; d = readdir(dir)) {
- this->Internal->Files.push_back(d->d_name);
+ this->Internal->Files.emplace_back(d->d_name);
}
this->Internal->Path = name;
closedir(dir);
- return 1;
+ return true;
}
unsigned long Directory::GetNumberOfFilesInDirectory(const std::string& name)