diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-01-28 14:00:28 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-01-28 14:09:59 (GMT) |
commit | 2fc69ba0b33e8f5f1b6301f37fc1479fba420b93 (patch) | |
tree | 3e870a7ce9eac0b8d2eeaab9aa537efba4941b41 /Source/cmFileTimeComparison.h | |
parent | 1593e16d881bf74fd8981e1290d20f28191f1f0e (diff) | |
download | CMake-2fc69ba0b33e8f5f1b6301f37fc1479fba420b93.zip CMake-2fc69ba0b33e8f5f1b6301f37fc1479fba420b93.tar.gz CMake-2fc69ba0b33e8f5f1b6301f37fc1479fba420b93.tar.bz2 |
cmFileTimeComparison: use std::string arguments
Diffstat (limited to 'Source/cmFileTimeComparison.h')
-rw-r--r-- | Source/cmFileTimeComparison.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmFileTimeComparison.h b/Source/cmFileTimeComparison.h index 114989b..5f74e34 100644 --- a/Source/cmFileTimeComparison.h +++ b/Source/cmFileTimeComparison.h @@ -5,6 +5,8 @@ #include "cmConfigure.h" // IWYU pragma: keep +#include <string> + class cmFileTimeComparisonInternal; /** \class cmFileTimeComparison @@ -24,13 +26,14 @@ public: * When true is returned, result has -1, 0, +1 for * f1 older, same, or newer than f2. */ - bool FileTimeCompare(const char* f1, const char* f2, int* result); + bool FileTimeCompare(const std::string& f1, const std::string& f2, + int* result); /** * Compare file modification times. Return true unless both files * exist and have modification times less than 1 second apart. */ - bool FileTimesDiffer(const char* f1, const char* f2); + bool FileTimesDiffer(const std::string& f1, const std::string& f2); protected: cmFileTimeComparisonInternal* Internals; |