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/commands_integrate.cpp | |
| parent | 294159bfd1a25fbffac8051bdf76f2cb88add0fd (diff) | |
| download | vcpkg-46999d38beb6f34f2c484f51e5421a8cabc23a07.tar.gz vcpkg-46999d38beb6f34f2c484f51e5421a8cabc23a07.zip | |
Use Util::erase_remove_if()
Diffstat (limited to 'toolsrc/src/commands_integrate.cpp')
| -rw-r--r-- | toolsrc/src/commands_integrate.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/toolsrc/src/commands_integrate.cpp b/toolsrc/src/commands_integrate.cpp index 256c3ad1d..ea0682e1f 100644 --- a/toolsrc/src/commands_integrate.cpp +++ b/toolsrc/src/commands_integrate.cpp @@ -3,6 +3,7 @@ #include "vcpkg_Checks.h" #include "vcpkg_System.h" #include "vcpkg_Files.h" +#include "vcpkg_Util.h" namespace vcpkg::Commands::Integrate { @@ -66,10 +67,7 @@ namespace vcpkg::Commands::Integrate dir_id.erase(1, 1); // Erasing the ":" // NuGet id cannot have invalid characters. We will only use alphanumeric and dot. - dir_id.erase(std::remove_if(dir_id.begin(), dir_id.end(), [](char c) - { - return !isalnum(c) && (c != '.'); - }), dir_id.end()); + Util::erase_remove_if(dir_id, [](char c) { return !isalnum(c) && (c != '.'); }); const std::string nuget_id = "vcpkg." + dir_id; return nuget_id; |
