Can't use std::string::clear() in cmake.

This commit is contained in:
Stephen Kelly
2012-09-15 09:33:31 +02:00
parent 0651fe18a6
commit 519c0a5d04

View File

@@ -72,7 +72,7 @@ const char *cmCompiledGeneratorExpression::Evaluate(
return this->Input;
}
this->Output.clear();
this->Output = "";
std::vector<cmGeneratorExpressionEvaluator*>::const_iterator it
= this->Evaluators.begin();
@@ -91,7 +91,7 @@ const char *cmCompiledGeneratorExpression::Evaluate(
this->Output += (*it)->Evaluate(&context);
if (context.HadError)
{
this->Output.clear();
this->Output = "";
break;
}
}