diff options
author | Brad King <brad.king@kitware.com> | 2012-03-16 13:58:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-03-16 14:16:55 (GMT) |
commit | 48eb7fc7d7b3fa5570a7b32968fa2cff07bf6fe7 (patch) | |
tree | 66b111b26d1111c95ca7161430b034cac045e62e /Source/cmNinjaNormalTargetGenerator.cxx | |
parent | bba37dd51753165ce3ade61badb61c07e1058e90 (diff) | |
download | CMake-48eb7fc7d7b3fa5570a7b32968fa2cff07bf6fe7.zip CMake-48eb7fc7d7b3fa5570a7b32968fa2cff07bf6fe7.tar.gz CMake-48eb7fc7d7b3fa5570a7b32968fa2cff07bf6fe7.tar.bz2 |
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.
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaNormalTargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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, |