CreateRulePlaceholderExpander(): enhance memory management

This method returns now a std::unique_ptr instance rather than a raw pointer.
This commit is contained in:
Marc Chevrier
2023-05-01 19:12:46 +02:00
parent 0d2d5a229c
commit 72faa9a017
10 changed files with 39 additions and 41 deletions

View File

@@ -137,7 +137,8 @@ public:
return this->GlobalGenerator;
}
virtual cmRulePlaceholderExpander* CreateRulePlaceholderExpander() const;
virtual std::unique_ptr<cmRulePlaceholderExpander>
CreateRulePlaceholderExpander() const;
std::string GetLinkLibsCMP0065(std::string const& linkLanguage,
cmGeneratorTarget& tgt) const;