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.
This commit is contained in:
Brad King 2012-03-16 09:58:32 -04:00
parent bba37dd517
commit 48eb7fc7d7
1 changed files with 1 additions and 1 deletions

View File

@ -27,8 +27,8 @@ cmNinjaNormalTargetGenerator(cmTarget* target)
, TargetNameReal() , TargetNameReal()
, TargetNameImport() , TargetNameImport()
, TargetNamePDB() , TargetNamePDB()
, TargetLinkLanguage(target->GetLinkerLanguage(this->GetConfigName()))
{ {
this->TargetLinkLanguage = target->GetLinkerLanguage(this->GetConfigName());
if (target->GetType() == cmTarget::EXECUTABLE) if (target->GetType() == cmTarget::EXECUTABLE)
target->GetExecutableNames(this->TargetNameOut, target->GetExecutableNames(this->TargetNameOut,
this->TargetNameReal, this->TargetNameReal,