|
@@ -80,6 +80,10 @@ void cmVariableWatch::RemoveWatch(const std::string& variable,
|
|
|
WatchMethod method,
|
|
WatchMethod method,
|
|
|
void* client_data /*=0*/)
|
|
void* client_data /*=0*/)
|
|
|
{
|
|
{
|
|
|
|
|
+ if ( !this->WatchMap.count(variable) )
|
|
|
|
|
+ {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
cmVariableWatch::VectorOfPairs* vp = &this->WatchMap[variable];
|
|
cmVariableWatch::VectorOfPairs* vp = &this->WatchMap[variable];
|
|
|
cmVariableWatch::VectorOfPairs::iterator it;
|
|
cmVariableWatch::VectorOfPairs::iterator it;
|
|
|
for ( it = vp->begin(); it != vp->end(); ++it )
|
|
for ( it = vp->begin(); it != vp->end(); ++it )
|