summaryrefslogtreecommitdiff
path: root/Source/cmTimestamp.h
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.h
parent4470eb5179d6ccbe5e31cec758546e820752f2d8 (diff)
downloadcmake-808b17b1206dd70c7fbd676e8c24181cde537954.tar.gz
clang-tidy: fix `readability-make-member-function-const` warnings
Diffstat (limited to 'Source/cmTimestamp.h')
-rw-r--r--Source/cmTimestamp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTimestamp.h b/Source/cmTimestamp.h
index 8941abe1c1..0e2c20006e 100644
--- a/Source/cmTimestamp.h
+++ b/Source/cmTimestamp.h
@@ -14,11 +14,11 @@
class cmTimestamp
{
public:
- std::string CurrentTime(const std::string& formatString, bool utcFlag);
+ std::string CurrentTime(const std::string& formatString, bool utcFlag) const;
std::string FileModificationTime(const char* path,
const std::string& formatString,
- bool utcFlag);
+ bool utcFlag) const;
std::string CreateTimestampFromTimeT(time_t timeT, std::string formatString,
bool utcFlag) const;