mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 20:13:07 +08:00
Simplify for-iterator
This commit is contained in:
parent
fd7969d325
commit
63052551ef
@ -17,11 +17,9 @@ namespace vcpkg
|
||||
System::println(System::color::warning, "Search strings are not yet implemented; showing full list of packages.");
|
||||
}
|
||||
|
||||
auto begin_it = fs::directory_iterator(paths.ports);
|
||||
auto end_it = fs::directory_iterator();
|
||||
for (; begin_it != end_it; ++begin_it)
|
||||
for (auto it = fs::directory_iterator(paths.ports); it != fs::directory_iterator(); ++it)
|
||||
{
|
||||
const auto& path = begin_it->path();
|
||||
const fs::path& path = it->path();
|
||||
|
||||
try
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user