diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2023-04-26 13:27:46 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2023-04-29 07:54:22 (GMT) |
commit | 87fe031a0703f07b8636f8ea59b6746788e71869 (patch) | |
tree | c5dd5704ef8688c65e9eae923299d5a00c76f3c9 /Source/cmStringAlgorithms.h | |
parent | f9da4cf8f1c56333511661de9fc74f4b82c1675b (diff) | |
download | CMake-87fe031a0703f07b8636f8ea59b6746788e71869.zip CMake-87fe031a0703f07b8636f8ea59b6746788e71869.tar.gz CMake-87fe031a0703f07b8636f8ea59b6746788e71869.tar.bz2 |
cmList class: various enhancements
Diffstat (limited to 'Source/cmStringAlgorithms.h')
-rw-r--r-- | Source/cmStringAlgorithms.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmStringAlgorithms.h b/Source/cmStringAlgorithms.h index 4ccbb8e..0e9dfbf 100644 --- a/Source/cmStringAlgorithms.h +++ b/Source/cmStringAlgorithms.h @@ -97,14 +97,14 @@ inline void cmExpandList(cm::string_view arg, std::vector<std::string>& argsOut, bool emptyArgs = false) { - cmList::append(arg, argsOut, + cmList::append(argsOut, arg, emptyArgs ? cmList::EmptyElements::Yes : cmList::EmptyElements::No); } inline void cmExpandList(cmValue arg, std::vector<std::string>& argsOut, bool emptyArgs = false) { - cmList::append(arg, argsOut, + cmList::append(argsOut, arg, emptyArgs ? cmList::EmptyElements::Yes : cmList::EmptyElements::No); } @@ -118,7 +118,7 @@ template <class InputIt> void cmExpandLists(InputIt first, InputIt last, std::vector<std::string>& argsOut) { - cmList::append(first, last, argsOut); + cmList::append(argsOut, first, last); } /** Concatenate string pieces into a single string. */ |