summaryrefslogtreecommitdiffstats
path: root/Source/cmFileTimeCache.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-22 14:23:24 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-08-22 14:23:34 (GMT)
commit337be1507d0850c1d83de0f9ad87a780c9cb61af (patch)
tree8f6e685341766cc429b5120a1a120bbfaf9bbaea /Source/cmFileTimeCache.cxx
parent6e1ff50efbc49628e7f9575b57128c0829bf607c (diff)
parentd331021255ba9092fa34e8e479d724b1092c704d (diff)
downloadCMake-337be1507d0850c1d83de0f9ad87a780c9cb61af.zip
CMake-337be1507d0850c1d83de0f9ad87a780c9cb61af.tar.gz
CMake-337be1507d0850c1d83de0f9ad87a780c9cb61af.tar.bz2
Merge topic 'isolate-declarations'
d331021255 clang-tidy: isolate declarations for readability Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3704
Diffstat (limited to 'Source/cmFileTimeCache.cxx')
-rw-r--r--Source/cmFileTimeCache.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmFileTimeCache.cxx b/Source/cmFileTimeCache.cxx
index 24d6bf6..0d1dae5 100644
--- a/Source/cmFileTimeCache.cxx
+++ b/Source/cmFileTimeCache.cxx
@@ -38,7 +38,8 @@ bool cmFileTimeCache::Compare(std::string const& f1, std::string const& f2,
int* result)
{
// Get the modification time for each file.
- cmFileTime ft1, ft2;
+ cmFileTime ft1;
+ cmFileTime ft2;
if (this->Load(f1, ft1) && this->Load(f2, ft2)) {
// Compare the two modification times.
*result = ft1.Compare(ft2);
@@ -52,7 +53,8 @@ bool cmFileTimeCache::Compare(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;
+ cmFileTime ft1;
+ cmFileTime ft2;
if (this->Load(f1, ft1) && this->Load(f2, ft2)) {
// Compare the two modification times.
return ft1.DifferS(ft2);