summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-03-14 16:11:21 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-03-18 14:09:11 (GMT)
commit98d48469534f7a491b8c358d513472806c858d22 (patch)
tree509b9cddeec52fb34a581d5eeae479a67d3e7075 /Source
parenta6d75a1ce0daec9c60ed850163f76416de35edb7 (diff)
downloadCMake-98d48469534f7a491b8c358d513472806c858d22.zip
CMake-98d48469534f7a491b8c358d513472806c858d22.tar.gz
CMake-98d48469534f7a491b8c358d513472806c858d22.tar.bz2
Rename cmFileTimeCache::FileTimesDiffer to cmFileTimeCache::DifferS
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFileCopier.cxx2
-rw-r--r--Source/cmFileTimeCache.cxx3
-rw-r--r--Source/cmFileTimeCache.h2
3 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmFileCopier.cxx b/Source/cmFileCopier.cxx
index 560d893..8913e6d 100644
--- a/Source/cmFileCopier.cxx
+++ b/Source/cmFileCopier.cxx
@@ -532,7 +532,7 @@ bool cmFileCopier::InstallFile(const std::string& fromFile,
bool copy = true;
if (!this->Always) {
// If both files exist with the same time do not copy.
- if (!this->FileTimes.FileTimesDiffer(fromFile, toFile)) {
+ if (!this->FileTimes.DifferS(fromFile, toFile)) {
copy = false;
}
}
diff --git a/Source/cmFileTimeCache.cxx b/Source/cmFileTimeCache.cxx
index ff205b7..81912db 100644
--- a/Source/cmFileTimeCache.cxx
+++ b/Source/cmFileTimeCache.cxx
@@ -44,8 +44,7 @@ bool cmFileTimeCache::FileTimeCompare(std::string const& f1,
return false;
}
-bool cmFileTimeCache::FileTimesDiffer(std::string const& f1,
- std::string const& f2)
+bool cmFileTimeCache::DifferS(std::string const& f1, std::string const& f2)
{
// Get the modification time for each file.
cmFileTime ft1, ft2;
diff --git a/Source/cmFileTimeCache.h b/Source/cmFileTimeCache.h
index d284fdb..043b7aa 100644
--- a/Source/cmFileTimeCache.h
+++ b/Source/cmFileTimeCache.h
@@ -42,7 +42,7 @@ public:
* @return true unless both files exist and have modification times less
* than 1 second apart.
*/
- bool FileTimesDiffer(std::string const& f1, std::string const& f2);
+ bool DifferS(std::string const& f1, std::string const& f2);
private:
typedef std::unordered_map<std::string, cmFileTime> FileTimeMap;