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/cmDepends.cxx | |
parent | 1593e16d881bf74fd8981e1290d20f28191f1f0e (diff) | |
download | CMake-2fc69ba0b33e8f5f1b6301f37fc1479fba420b93.zip CMake-2fc69ba0b33e8f5f1b6301f37fc1479fba420b93.tar.gz CMake-2fc69ba0b33e8f5f1b6301f37fc1479fba420b93.tar.bz2 |
cmFileTimeComparison: use std::string arguments
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r-- | Source/cmDepends.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx index 976ba57..7d1d316 100644 --- a/Source/cmDepends.cxx +++ b/Source/cmDepends.cxx @@ -156,8 +156,8 @@ bool cmDepends::CheckDependencies( // * if the depender does not exist, but the dependee is newer than the // depends file bool regenerate = false; - const char* dependee = this->Dependee + 1; - const char* depender = this->Depender; + const std::string dependee(this->Dependee + 1); + const std::string depender(this->Depender); if (currentDependencies != nullptr) { currentDependencies->push_back(dependee); } @@ -195,8 +195,8 @@ bool cmDepends::CheckDependencies( // The dependee exists, but the depender doesn't. Regenerate if the // internalDepends file is older than the dependee. int result = 0; - if ((!this->FileComparison->FileTimeCompare( - internalDependsFileName.c_str(), dependee, &result) || + if ((!this->FileComparison->FileTimeCompare(internalDependsFileName, + dependee, &result) || result < 0)) { // The depends-file is older than the dependee. regenerate = true; |