summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-05-01 17:12:46 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2023-05-04 17:34:36 (GMT)
commit72faa9a0175f7651c2707fead6a41450d2aaec88 (patch)
treee62fa3432742f1c62d1d911544e4cf42ca4028bd /Source/cmLocalUnixMakefileGenerator3.cxx
parent0d2d5a229c1cda842f0e67134637f19fc69de6c6 (diff)
downloadCMake-72faa9a0175f7651c2707fead6a41450d2aaec88.zip
CMake-72faa9a0175f7651c2707fead6a41450d2aaec88.tar.gz
CMake-72faa9a0175f7651c2707fead6a41450d2aaec88.tar.bz2
CreateRulePlaceholderExpander(): enhance memory management
This method returns now a std::unique_ptr instance rather than a raw pointer.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 9f3894a..cfe4eb6 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -969,8 +969,7 @@ void cmLocalUnixMakefileGenerator3::AppendCustomCommand(
*content << dir;
}
- std::unique_ptr<cmRulePlaceholderExpander> rulePlaceholderExpander(
- this->CreateRulePlaceholderExpander());
+ auto rulePlaceholderExpander = this->CreateRulePlaceholderExpander();
// Add each command line to the set of commands.
std::vector<std::string> commands1;