summaryrefslogtreecommitdiff
path: root/Source/cmDepends.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2019-01-28 09:00:28 -0500
committerVitaly Stakhovsky <vvs31415@gitlab.org>2019-01-28 09:09:59 -0500
commit2fc69ba0b33e8f5f1b6301f37fc1479fba420b93 (patch)
tree3e870a7ce9eac0b8d2eeaab9aa537efba4941b41 /Source/cmDepends.cxx
parent1593e16d881bf74fd8981e1290d20f28191f1f0e (diff)
downloadcmake-2fc69ba0b33e8f5f1b6301f37fc1479fba420b93.tar.gz
cmFileTimeComparison: use std::string arguments
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r--Source/cmDepends.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx
index 976ba5701f..7d1d316249 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;