diff options
| author | Robert Schumacher <ras0219@outlook.com> | 2017-04-13 02:15:42 -0700 |
|---|---|---|
| committer | Robert Schumacher <ras0219@outlook.com> | 2017-04-13 02:15:42 -0700 |
| commit | c92623216d0cda5e665439cc778667fd521eefeb (patch) | |
| tree | fd537ce9b1c413ad0627014056ae117fc483c6bb /toolsrc/src/commands_integrate.cpp | |
| parent | 3739e8e0b998b14c0f320c21618057e50698c51d (diff) | |
| download | vcpkg-c92623216d0cda5e665439cc778667fd521eefeb.tar.gz vcpkg-c92623216d0cda5e665439cc778667fd521eefeb.zip | |
Revert "Use Util::keep_if()"
This reverts commit 3739e8e0b998b14c0f320c21618057e50698c51d.
Diffstat (limited to 'toolsrc/src/commands_integrate.cpp')
| -rw-r--r-- | toolsrc/src/commands_integrate.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/toolsrc/src/commands_integrate.cpp b/toolsrc/src/commands_integrate.cpp index e51b1637e..256c3ad1d 100644 --- a/toolsrc/src/commands_integrate.cpp +++ b/toolsrc/src/commands_integrate.cpp @@ -3,7 +3,6 @@ #include "vcpkg_Checks.h" #include "vcpkg_System.h" #include "vcpkg_Files.h" -#include "vcpkg_Util.h" namespace vcpkg::Commands::Integrate { @@ -67,10 +66,10 @@ namespace vcpkg::Commands::Integrate dir_id.erase(1, 1); // Erasing the ":" // NuGet id cannot have invalid characters. We will only use alphanumeric and dot. - Util::keep_if(dir_id, [](char c) - { - return isalnum(c) || (c == '.'); - }); + dir_id.erase(std::remove_if(dir_id.begin(), dir_id.end(), [](char c) + { + return !isalnum(c) && (c != '.'); + }), dir_id.end()); const std::string nuget_id = "vcpkg." + dir_id; return nuget_id; |
