summaryrefslogtreecommitdiff
path: root/Source/cmTimestamp.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-01-22 10:37:38 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2021-01-27 08:45:45 -0500
commit808b17b1206dd70c7fbd676e8c24181cde537954 (patch)
treee20da218e1f9d702f4ff76fac9595740d375c3ed /Source/cmTimestamp.cxx
parent4470eb5179d6ccbe5e31cec758546e820752f2d8 (diff)
downloadcmake-808b17b1206dd70c7fbd676e8c24181cde537954.tar.gz
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 e03a5674c3..b016530099 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);