cmLocalGenerator: Move memset to cxx file

This commit is contained in:
Stephen Kelly 2016-10-11 19:33:42 +02:00
parent c75a9d6601
commit f796e1b6f6
2 changed files with 6 additions and 1 deletions

View File

@ -560,6 +560,11 @@ cmState::Snapshot cmLocalGenerator::GetStateSnapshot() const
return this->Makefile->GetStateSnapshot();
}
cmLocalGenerator::RuleVariables::RuleVariables()
{
memset(this, 0, sizeof(*this));
}
std::string cmLocalGenerator::ExpandRuleVariable(
cmOutputConverter* outputConverter, std::string const& variable,
const RuleVariables& replaceValues)

View File

@ -221,7 +221,7 @@ public:
// ExpandRuleVariables
struct RuleVariables
{
RuleVariables() { memset(this, 0, sizeof(*this)); }
RuleVariables();
const char* CMTargetName;
const char* CMTargetType;
const char* TargetPDB;