aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-10 17:01:41 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-10 17:04:29 -0800
commitc59ac4e344fb96b0ab09189345519d7cf237577c (patch)
tree226e1cc0f2999700a446da99b530a4cf96334a85
parent6860b461a1fc3a910cb64b0b55402685043237dd (diff)
downloadvcpkg-c59ac4e344fb96b0ab09189345519d7cf237577c.tar.gz
vcpkg-c59ac4e344fb96b0ab09189345519d7cf237577c.zip
Formatting
-rw-r--r--toolsrc/src/vcpkg_Environment.cpp12
-rw-r--r--toolsrc/src/vcpkg_paths.cpp10
2 files changed, 11 insertions, 11 deletions
diff --git a/toolsrc/src/vcpkg_Environment.cpp b/toolsrc/src/vcpkg_Environment.cpp
index 98d1357e4..8aaaba8a8 100644
--- a/toolsrc/src/vcpkg_Environment.cpp
+++ b/toolsrc/src/vcpkg_Environment.cpp
@@ -46,15 +46,15 @@ namespace vcpkg::Environment
const fs::path msvc_path = Strings::format(R"(%s\VC\Tools\MSVC)", instance);
std::vector<fs::path> msvc_subdirectories;
Files::non_recursive_find_matching_paths_in_dir(msvc_path, [&](const fs::path& current)
- {
- return fs::is_directory(current);
- }, &msvc_subdirectories);
+ {
+ return fs::is_directory(current);
+ }, &msvc_subdirectories);
// Sort them so that latest comes first
std::sort(msvc_subdirectories.begin(), msvc_subdirectories.end(), [&](const fs::path& left, const fs::path& right)
- {
- return left.filename() > right.filename();
- });
+ {
+ return left.filename() > right.filename();
+ });
for (const fs::path& subdir : msvc_subdirectories)
{
diff --git a/toolsrc/src/vcpkg_paths.cpp b/toolsrc/src/vcpkg_paths.cpp
index 34bab1dda..fa6fca370 100644
--- a/toolsrc/src/vcpkg_paths.cpp
+++ b/toolsrc/src/vcpkg_paths.cpp
@@ -40,10 +40,10 @@ namespace vcpkg
static optional<fs::path> find_if_has_equal_or_greater_version(const std::vector<fs::path>& candidate_paths, const std::wstring& version_check_arguments, const std::array<int, 3>& expected_version)
{
auto it = std::find_if(candidate_paths.cbegin(), candidate_paths.cend(), [&](const fs::path& p)
- {
- const std::wstring cmd = Strings::wformat(LR"("%s" %s)", p.native(), version_check_arguments);
- return exists_and_has_equal_or_greater_version(cmd, expected_version);
- });
+ {
+ const std::wstring cmd = Strings::wformat(LR"("%s" %s)", p.native(), version_check_arguments);
+ return exists_and_has_equal_or_greater_version(cmd, expected_version);
+ });
if (it != candidate_paths.cend())
{
@@ -83,7 +83,7 @@ namespace vcpkg
const fs::path actual_downloaded_path = rc.output;
Checks::check_exit(expected_downloaded_path == actual_downloaded_path, "Expected dependency downloaded path to be %s, but was %s",
- expected_downloaded_path.generic_string(), actual_downloaded_path.generic_string());
+ expected_downloaded_path.generic_string(), actual_downloaded_path.generic_string());
return actual_downloaded_path;
}