diff options
author | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2012-02-26 21:04:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-28 13:21:39 (GMT) |
commit | e846e7031fd16ac3e3418ca3a6871aa3f1b6a822 (patch) | |
tree | bd8059fc07adc3ad590075f6f66d6f0a50b76161 /Source/cmGlobalGenerator.cxx | |
parent | 81c66c8b88d756a1605aa1aac1de49df77feecdd (diff) | |
download | CMake-e846e7031fd16ac3e3418ca3a6871aa3f1b6a822.zip CMake-e846e7031fd16ac3e3418ca3a6871aa3f1b6a822.tar.gz CMake-e846e7031fd16ac3e3418ca3a6871aa3f1b6a822.tar.bz2 |
exports: Remove cmTargetExport constructor
The constructor was used exactly once.
Setting members explicitly makes the code more readable.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index a209ab6..77274dc 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1467,18 +1467,10 @@ void cmGlobalGenerator::AddInstallComponent(const char* component) } void cmGlobalGenerator::AddTargetToExports(const char* exportSetName, - cmTarget* target, - cmInstallTargetGenerator* archive, - cmInstallTargetGenerator* runTime, - cmInstallTargetGenerator* library, - cmInstallTargetGenerator* framework, - cmInstallTargetGenerator* bundle, - cmInstallFilesGenerator* headers) -{ - if ((exportSetName) && (*exportSetName) && (target)) - { - cmTargetExport* te = new cmTargetExport(target, archive, runTime, library, - framework, bundle, headers); + cmTargetExport *te) +{ + if ((exportSetName) && (*exportSetName) && (te)) + { this->ExportSets[exportSetName].push_back(te); } } |