aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg_Strings.cpp
diff options
context:
space:
mode:
authorRobert Schumacher <ras0219@outlook.com>2017-04-13 02:15:42 -0700
committerRobert Schumacher <ras0219@outlook.com>2017-04-13 02:15:42 -0700
commitc92623216d0cda5e665439cc778667fd521eefeb (patch)
treefd537ce9b1c413ad0627014056ae117fc483c6bb /toolsrc/src/vcpkg_Strings.cpp
parent3739e8e0b998b14c0f320c21618057e50698c51d (diff)
downloadvcpkg-c92623216d0cda5e665439cc778667fd521eefeb.tar.gz
vcpkg-c92623216d0cda5e665439cc778667fd521eefeb.zip
Revert "Use Util::keep_if()"
This reverts commit 3739e8e0b998b14c0f320c21618057e50698c51d.
Diffstat (limited to 'toolsrc/src/vcpkg_Strings.cpp')
-rw-r--r--toolsrc/src/vcpkg_Strings.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/toolsrc/src/vcpkg_Strings.cpp b/toolsrc/src/vcpkg_Strings.cpp
index 3d9895436..26dc6388b 100644
--- a/toolsrc/src/vcpkg_Strings.cpp
+++ b/toolsrc/src/vcpkg_Strings.cpp
@@ -1,6 +1,5 @@
#include "pch.h"
#include "vcpkg_Strings.h"
-#include "vcpkg_Util.h"
namespace vcpkg::Strings::details
{
@@ -99,10 +98,10 @@ namespace vcpkg::Strings
trim(&s);
}
- Util::keep_if(*strings, [](const std::string& s)-> bool
- {
- return s != "";
- });
+ strings->erase(std::remove_if(strings->begin(), strings->end(), [](const std::string& s)-> bool
+ {
+ return s == "";
+ }), strings->end());
}
std::vector<std::string> split(const std::string& s, const std::string& delimiter)