summaryrefslogtreecommitdiffstats
path: root/Source/cmEndWhileCommand.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-11-27 19:38:57 (GMT)
committerBrad King <brad.king@kitware.com>2016-11-29 18:53:29 (GMT)
commitd23a0196844f066047aa6942b69c6e591462df38 (patch)
tree2ba120b7447a65aa8dd7d5fe649491ea6a94bd4d /Source/cmEndWhileCommand.cxx
parent1afbe7d2cca61ecf483f7697b0141a233508603d (diff)
downloadCMake-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.cxx5
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 "