From 48eb7fc7d7b3fa5570a7b32968fa2cff07bf6fe7 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 16 Mar 2012 09:58:32 -0400 Subject: Ninja: Avoid using 'this' in member initializers VS complains warning C4355: 'this' : used in base member initializer list so initialize the member in the constructor body instead. --- Source/cmNinjaNormalTargetGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index 439f734..9242181 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -27,8 +27,8 @@ cmNinjaNormalTargetGenerator(cmTarget* target) , TargetNameReal() , TargetNameImport() , TargetNamePDB() - , TargetLinkLanguage(target->GetLinkerLanguage(this->GetConfigName())) { + this->TargetLinkLanguage = target->GetLinkerLanguage(this->GetConfigName()); if (target->GetType() == cmTarget::EXECUTABLE) target->GetExecutableNames(this->TargetNameOut, this->TargetNameReal, -- cgit v0.12