mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 20:00:51 -05:00
Source sweep: Replace cmExpandList with the shorter cmExpandedList
This replaces the code pattern ``` std::vector<std::string> args; cmExpandList(valueStr, args, ...) ``` with ``` std::vector<std::string> args = cmExpandedList(valueStr, ...) ```
This commit is contained in:
@@ -483,8 +483,7 @@ std::vector<BT<std::string>> ExpandListWithBacktrace(
|
||||
std::string const& list, cmListFileBacktrace const& bt)
|
||||
{
|
||||
std::vector<BT<std::string>> result;
|
||||
std::vector<std::string> tmp;
|
||||
cmExpandList(list, tmp);
|
||||
std::vector<std::string> tmp = cmExpandedList(list);
|
||||
result.reserve(tmp.size());
|
||||
for (std::string& i : tmp) {
|
||||
result.emplace_back(std::move(i), bt);
|
||||
|
||||
Reference in New Issue
Block a user