diff options
author | Brad King <brad.king@kitware.com> | 2016-04-14 14:46:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-04-15 12:31:59 (GMT) |
commit | a559f0f6b020697a064517637ae04f0733ffc6ea (patch) | |
tree | e4016fcc38bbd8af41c86ea14fe9cdcbdc621566 /Source/cmWhileCommand.cxx | |
parent | 7503deb2c55a32f72c9ec34f17a800d4ab1e4c75 (diff) | |
download | CMake-a559f0f6b020697a064517637ae04f0733ffc6ea.zip CMake-a559f0f6b020697a064517637ae04f0733ffc6ea.tar.gz CMake-a559f0f6b020697a064517637ae04f0733ffc6ea.tar.bz2 |
cmWhileCommand: Simplify context construction
Diffstat (limited to 'Source/cmWhileCommand.cxx')
-rw-r--r-- | Source/cmWhileCommand.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmWhileCommand.cxx b/Source/cmWhileCommand.cxx index aabbe27..7bb78bf 100644 --- a/Source/cmWhileCommand.cxx +++ b/Source/cmWhileCommand.cxx @@ -55,13 +55,9 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf, commandContext.Line = execContext.Line; commandContext.Name = execContext.Name; - cmListFileContext conditionContext = - cmListFileContext::FromCommandContext( - commandContext, - this->GetStartingContext().FilePath); - cmConditionEvaluator conditionEvaluator( - mf, conditionContext, + mf, + this->GetStartingContext(), mf.GetBacktrace(commandContext)); bool isTrue = conditionEvaluator.IsTrue( |