summaryrefslogtreecommitdiff
path: root/Source/cmEndForEachCommand.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-11-27 20:38:57 +0100
committerBrad King <brad.king@kitware.com>2016-11-29 13:53:29 -0500
commitd23a0196844f066047aa6942b69c6e591462df38 (patch)
tree2ba120b7447a65aa8dd7d5fe649491ea6a94bd4d /Source/cmEndForEachCommand.cxx
parent1afbe7d2cca61ecf483f7697b0141a233508603d (diff)
downloadcmake-d23a0196844f066047aa6942b69c6e591462df38.tar.gz
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/cmEndForEachCommand.cxx')
-rw-r--r--Source/cmEndForEachCommand.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmEndForEachCommand.cxx b/Source/cmEndForEachCommand.cxx
index fe6a7f352f..81a37c33b5 100644
--- a/Source/cmEndForEachCommand.cxx
+++ b/Source/cmEndForEachCommand.cxx
@@ -3,10 +3,9 @@
#include "cmEndForEachCommand.h"
class cmExecutionStatus;
-struct cmListFileArgument;
-bool cmEndForEachCommand::InvokeInitialPass(
- std::vector<cmListFileArgument> const&, cmExecutionStatus&)
+bool cmEndForEachCommand::InitialPass(std::vector<std::string> const&,
+ cmExecutionStatus&)
{
this->SetError("An ENDFOREACH command was found outside of a proper "
"FOREACH ENDFOREACH structure. Or its arguments did "