From f796e1b6f6984b200453a13e6b8640353ff9488b Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 11 Oct 2016 19:33:42 +0200 Subject: cmLocalGenerator: Move memset to cxx file --- Source/cmLocalGenerator.cxx | 5 +++++ Source/cmLocalGenerator.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index fad7fae..849ffe4 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -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) diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h index c51aa85..6e6791d 100644 --- a/Source/cmLocalGenerator.h +++ b/Source/cmLocalGenerator.h @@ -221,7 +221,7 @@ public: // ExpandRuleVariables struct RuleVariables { - RuleVariables() { memset(this, 0, sizeof(*this)); } + RuleVariables(); const char* CMTargetName; const char* CMTargetType; const char* TargetPDB; -- cgit v0.12