diff options
author | Brad King <brad.king@kitware.com> | 2021-05-12 19:26:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-12 19:53:37 (GMT) |
commit | ba7b939831428e51042ba98ea54df8b98a20ab27 (patch) | |
tree | 2ccc1cebe0f61e29d5b469599b2f88e14ec75c02 /Source/cmListFileCache.cxx | |
parent | 09bee3bee137af72f57ee10327e4e5f689ce7e90 (diff) | |
download | CMake-ba7b939831428e51042ba98ea54df8b98a20ab27.zip CMake-ba7b939831428e51042ba98ea54df8b98a20ab27.tar.gz CMake-ba7b939831428e51042ba98ea54df8b98a20ab27.tar.bz2 |
cmStateDirectory: Rename ConvertToRelPathIf{Not => }Contained
The "Not" in the method name is backward from its logic.
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r-- | Source/cmListFileCache.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index 5c3a034..2b98f20 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -550,7 +550,7 @@ void cmListFileBacktrace::PrintTitle(std::ostream& out) const cmListFileContext lfc = this->TopEntry->Context; cmStateSnapshot bottom = this->GetBottom(); if (!bottom.GetState()->GetIsInTryCompile()) { - lfc.FilePath = bottom.GetDirectory().ConvertToRelPathIfNotContained( + lfc.FilePath = bottom.GetDirectory().ConvertToRelPathIfContained( bottom.GetState()->GetSourceDirectory(), lfc.FilePath); } out << (lfc.Line ? " at " : " in ") << lfc; @@ -581,7 +581,7 @@ void cmListFileBacktrace::PrintCallStack(std::ostream& out) const } cmListFileContext lfc = cur->Context; if (!bottom.GetState()->GetIsInTryCompile()) { - lfc.FilePath = bottom.GetDirectory().ConvertToRelPathIfNotContained( + lfc.FilePath = bottom.GetDirectory().ConvertToRelPathIfContained( bottom.GetState()->GetSourceDirectory(), lfc.FilePath); } out << " " << lfc << "\n"; |