aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg_Files.cpp
diff options
context:
space:
mode:
authorThomas Fussell <thomas.fussell@gmail.com>2017-03-12 17:44:06 -0400
committerThomas Fussell <thomas.fussell@gmail.com>2017-03-12 17:44:06 -0400
commit2f42035ab43dd50cd863b51944aa099a99ae60f0 (patch)
tree4b6cfd43955e946721c58028fd8564c861d5c331 /toolsrc/src/vcpkg_Files.cpp
parente02e85626f3206feda86a6f5757009005e0cfe3e (diff)
parent1c9873a0daf625f67474aaf3e163c592c27ecb65 (diff)
downloadvcpkg-2f42035ab43dd50cd863b51944aa099a99ae60f0.tar.gz
vcpkg-2f42035ab43dd50cd863b51944aa099a99ae60f0.zip
Merge branch 'master' of git://github.com/Microsoft/vcpkg
Diffstat (limited to 'toolsrc/src/vcpkg_Files.cpp')
-rw-r--r--toolsrc/src/vcpkg_Files.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/toolsrc/src/vcpkg_Files.cpp b/toolsrc/src/vcpkg_Files.cpp
index 48283e43f..57d4c665c 100644
--- a/toolsrc/src/vcpkg_Files.cpp
+++ b/toolsrc/src/vcpkg_Files.cpp
@@ -1,9 +1,8 @@
+#include "pch.h"
#include "vcpkg_Files.h"
-#include <fstream>
-#include <regex>
#include "vcpkg_System.h"
-namespace vcpkg {namespace Files
+namespace vcpkg::Files
{
static const std::regex FILESYSTEM_INVALID_CHARACTERS_REGEX = std::regex(R"([\/:*?"<>|])");
@@ -103,7 +102,7 @@ namespace vcpkg {namespace Files
void recursive_find_all_files_in_dir(const fs::path& dir, std::vector<fs::path>* output)
{
- recursive_find_matching_paths_in_dir(dir, [&](const fs::path& current)
+ recursive_find_matching_paths_in_dir(dir, [](const fs::path& current)
{
return !fs::is_directory(current);
}, output);
@@ -118,7 +117,7 @@ namespace vcpkg {namespace Files
void non_recursive_find_all_files_in_dir(const fs::path& dir, std::vector<fs::path>* output)
{
- non_recursive_find_matching_paths_in_dir(dir, [&](const fs::path& current)
+ non_recursive_find_matching_paths_in_dir(dir, [](const fs::path& current)
{
return !fs::is_directory(current);
}, output);
@@ -140,4 +139,4 @@ namespace vcpkg {namespace Files
}
System::println("");
}
-}}
+}