diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-11-27 19:38:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-29 18:53:29 (GMT) |
commit | d23a0196844f066047aa6942b69c6e591462df38 (patch) | |
tree | 2ba120b7447a65aa8dd7d5fe649491ea6a94bd4d /Source/cmEndWhileCommand.cxx | |
parent | 1afbe7d2cca61ecf483f7697b0141a233508603d (diff) | |
download | CMake-d23a0196844f066047aa6942b69c6e591462df38.zip CMake-d23a0196844f066047aa6942b69c6e591462df38.tar.gz CMake-d23a0196844f066047aa6942b69c6e591462df38.tar.bz2 |
Set the error after argument expansion in end commands
The current code is optimized for rare error cases. Simplify the code
and remove these optimizations.
Diffstat (limited to 'Source/cmEndWhileCommand.cxx')
-rw-r--r-- | Source/cmEndWhileCommand.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmEndWhileCommand.cxx b/Source/cmEndWhileCommand.cxx index 7201569..9c65bbe 100644 --- a/Source/cmEndWhileCommand.cxx +++ b/Source/cmEndWhileCommand.cxx @@ -3,10 +3,9 @@ #include "cmEndWhileCommand.h" class cmExecutionStatus; -struct cmListFileArgument; -bool cmEndWhileCommand::InvokeInitialPass( - std::vector<cmListFileArgument> const&, cmExecutionStatus&) +bool cmEndWhileCommand::InitialPass(std::vector<std::string> const&, + cmExecutionStatus&) { this->SetError("An ENDWHILE command was found outside of a proper " "WHILE ENDWHILE structure. Or its arguments did not " |