Skip to content

Commit

Permalink
Use for-each loop
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkaratarakis committed Jan 23, 2018
1 parent adc8055 commit bbf1a73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toolsrc/src/vcpkg/commands.exportifw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ namespace vcpkg::Export::IFW
)###",
create_release_date()));

for (auto package = unique_packages.begin(); package != unique_packages.end(); ++package)
for (const auto& unique_package : unique_packages)
{
const ExportPlanAction& action = *(package->second);
const ExportPlanAction& action = *(unique_package.second);
const BinaryParagraph& binary_paragraph = action.core_paragraph().value_or_exit(VCPKG_LINE_INFO);

package_xml_file_path =
raw_exported_dir_path / Strings::format("packages.%s", package->first) / "meta" / "package.xml";
raw_exported_dir_path / Strings::format("packages.%s", unique_package.first) / "meta" / "package.xml";
package_xml_dir_path = package_xml_file_path.parent_path();
fs.create_directories(package_xml_dir_path, ec);
Checks::check_exit(VCPKG_LINE_INFO,
Expand Down

0 comments on commit bbf1a73

Please sign in to comment.