summaryrefslogtreecommitdiffstats
path: root/Source/cmForEachCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-01-20 19:36:18 (GMT)
committerBrad King <brad.king@kitware.com>2009-01-20 19:36:18 (GMT)
commit2c81e5fb5cd592e9450250364e6667082014f0b7 (patch)
tree8897bcaca936aaedba35f3153f976b315b912329 /Source/cmForEachCommand.h
parenta541cac325715cd50f604ede864eba8edfbb2673 (diff)
downloadCMake-2c81e5fb5cd592e9450250364e6667082014f0b7.zip
CMake-2c81e5fb5cd592e9450250364e6667082014f0b7.tar.gz
CMake-2c81e5fb5cd592e9450250364e6667082014f0b7.tar.bz2
ENH: Refactor function blocker deletion
When a function blocker decides to remove itself we previously removed it at every return point from the C++ scope in which its removal is needed. This teaches function blockers to transfer ownership of themselves from cmMakefile to an automatic variable for deletion on return. Since this removes blockers before they replay their commands, we no longer need to avoid running blockers on their own commands.
Diffstat (limited to 'Source/cmForEachCommand.h')
-rw-r--r--Source/cmForEachCommand.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmForEachCommand.h b/Source/cmForEachCommand.h
index 6ef217a..3357ce4 100644
--- a/Source/cmForEachCommand.h
+++ b/Source/cmForEachCommand.h
@@ -29,7 +29,7 @@
class cmForEachFunctionBlocker : public cmFunctionBlocker
{
public:
- cmForEachFunctionBlocker() {this->Executing = false; Depth = 0;}
+ cmForEachFunctionBlocker() {this->Depth = 0;}
virtual ~cmForEachFunctionBlocker() {}
virtual bool IsFunctionBlocked(const cmListFileFunction& lff,
cmMakefile &mf,
@@ -39,7 +39,6 @@ public:
std::vector<std::string> Args;
std::vector<cmListFileFunction> Functions;
- bool Executing;
private:
int Depth;
};