diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-13 15:49:33 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-13 15:49:33 -0700 |
| commit | 46999d38beb6f34f2c484f51e5421a8cabc23a07 (patch) | |
| tree | d658fa564b0c9139130e4b0b9ce1ad8a4a03af43 /toolsrc/src/vcpkglib.cpp | |
| parent | 294159bfd1a25fbffac8051bdf76f2cb88add0fd (diff) | |
| download | vcpkg-46999d38beb6f34f2c484f51e5421a8cabc23a07.tar.gz vcpkg-46999d38beb6f34f2c484f51e5421a8cabc23a07.zip | |
Use Util::erase_remove_if()
Diffstat (limited to 'toolsrc/src/vcpkglib.cpp')
| -rw-r--r-- | toolsrc/src/vcpkglib.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/toolsrc/src/vcpkglib.cpp b/toolsrc/src/vcpkglib.cpp index 5e847019f..253c0c7ea 100644 --- a/toolsrc/src/vcpkglib.cpp +++ b/toolsrc/src/vcpkglib.cpp @@ -4,6 +4,7 @@ #include "Paragraphs.h" #include "metrics.h" #include "vcpkg_Strings.h" +#include "vcpkg_Util.h" namespace vcpkg { @@ -201,12 +202,7 @@ namespace vcpkg upgrade_to_slash_terminated_sorted_format(&installed_files_of_current_pgh, listfile_path); // Remove the directories - installed_files_of_current_pgh.erase( - std::remove_if(installed_files_of_current_pgh.begin(), installed_files_of_current_pgh.end(), [](const std::string& file) -> bool - { - return file.back() == '/'; - } - ), installed_files_of_current_pgh.end()); + Util::erase_remove_if(installed_files_of_current_pgh, [](const std::string& file) { return file.back() == '/'; }); StatusParagraphAndAssociatedFiles pgh_and_files = { *pgh, SortedVector<std::string>(std::move(installed_files_of_current_pgh)) }; installed_files.push_back(std::move(pgh_and_files)); |
