diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-10-11 17:33:42 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-10-15 09:25:12 (GMT) |
commit | f796e1b6f6984b200453a13e6b8640353ff9488b (patch) | |
tree | 1bfd77e18dcc25758b17bb590f75270b967728d2 /Source | |
parent | c75a9d660169ddd1e7be57486d3813ca73886b55 (diff) | |
download | CMake-f796e1b6f6984b200453a13e6b8640353ff9488b.zip CMake-f796e1b6f6984b200453a13e6b8640353ff9488b.tar.gz CMake-f796e1b6f6984b200453a13e6b8640353ff9488b.tar.bz2 |
cmLocalGenerator: Move memset to cxx file
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 5 | ||||
-rw-r--r-- | Source/cmLocalGenerator.h | 2 |
2 files changed, 6 insertions, 1 deletions
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; |