summaryrefslogtreecommitdiffstats
path: root/Source/cmTimestamp.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-01-22 15:37:38 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2021-01-27 13:45:45 (GMT)
commit808b17b1206dd70c7fbd676e8c24181cde537954 (patch)
treee20da218e1f9d702f4ff76fac9595740d375c3ed /Source/cmTimestamp.cxx
parent4470eb5179d6ccbe5e31cec758546e820752f2d8 (diff)
downloadCMake-808b17b1206dd70c7fbd676e8c24181cde537954.zip
CMake-808b17b1206dd70c7fbd676e8c24181cde537954.tar.gz
CMake-808b17b1206dd70c7fbd676e8c24181cde537954.tar.bz2
clang-tidy: fix `readability-make-member-function-const` warnings
Diffstat (limited to 'Source/cmTimestamp.cxx')
-rw-r--r--Source/cmTimestamp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTimestamp.cxx b/Source/cmTimestamp.cxx
index e03a567..b016530 100644
--- a/Source/cmTimestamp.cxx
+++ b/Source/cmTimestamp.cxx
@@ -23,7 +23,7 @@
#include "cmSystemTools.h"
std::string cmTimestamp::CurrentTime(const std::string& formatString,
- bool utcFlag)
+ bool utcFlag) const
{
time_t currentTimeT = time(nullptr);
std::string source_date_epoch;
@@ -45,7 +45,7 @@ std::string cmTimestamp::CurrentTime(const std::string& formatString,
std::string cmTimestamp::FileModificationTime(const char* path,
const std::string& formatString,
- bool utcFlag)
+ bool utcFlag) const
{
std::string real_path =
cmSystemTools::GetRealPathResolvingWindowsSubst(path);