diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-04-13 02:21:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-13 02:21:38 -0700 |
| commit | d193dae2ce68eaa5e3c35d0882091b1ceaf6d82b (patch) | |
| tree | fd537ce9b1c413ad0627014056ae117fc483c6bb /toolsrc/src/commands_hash.cpp | |
| parent | 3739e8e0b998b14c0f320c21618057e50698c51d (diff) | |
| parent | c92623216d0cda5e665439cc778667fd521eefeb (diff) | |
| download | vcpkg-d193dae2ce68eaa5e3c35d0882091b1ceaf6d82b.tar.gz vcpkg-d193dae2ce68eaa5e3c35d0882091b1ceaf6d82b.zip | |
Merge pull request #936 from ras0219/master
Revert "Use Util::keep_if()"
Diffstat (limited to 'toolsrc/src/commands_hash.cpp')
| -rw-r--r-- | toolsrc/src/commands_hash.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/toolsrc/src/commands_hash.cpp b/toolsrc/src/commands_hash.cpp index a9024d9e7..2ffa3a9aa 100644 --- a/toolsrc/src/commands_hash.cpp +++ b/toolsrc/src/commands_hash.cpp @@ -1,7 +1,6 @@ #include "pch.h" #include "vcpkg_Commands.h" #include "vcpkg_System.h" -#include "vcpkg_Util.h" namespace vcpkg::Commands::Hash { @@ -21,7 +20,7 @@ namespace vcpkg::Commands::Hash Checks::check_exit(VCPKG_LINE_INFO, end != std::string::npos, "Unexpected output format from command: %s", Strings::utf16_to_utf8(cmd_line)); auto hash = output.substr(start, end - start); - Util::keep_if(hash, [](char c) {return !isspace(c); }); + hash.erase(std::remove_if(hash.begin(), hash.end(), isspace), hash.end()); System::println(hash); } |
