From eeb87e10510d633fe1a019771ad6368e2e8d1e3d Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Mon, 3 Apr 2017 16:32:14 -0700 Subject: StatusParagraph_and_associated_files -> StatusParagraphAndAssociatedFiles --- toolsrc/include/vcpkglib.h | 4 ++-- toolsrc/src/commands_install.cpp | 8 ++++---- toolsrc/src/commands_owns.cpp | 4 ++-- toolsrc/src/vcpkglib.cpp | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/toolsrc/include/vcpkglib.h b/toolsrc/include/vcpkglib.h index f4803ceaa..853746923 100644 --- a/toolsrc/include/vcpkglib.h +++ b/toolsrc/include/vcpkglib.h @@ -12,14 +12,14 @@ namespace vcpkg void write_update(const VcpkgPaths& paths, const StatusParagraph& p); - struct StatusParagraph_and_associated_files + struct StatusParagraphAndAssociatedFiles { StatusParagraph pgh; SortedVector files; }; std::vector get_installed_ports(const StatusParagraphs& status_db); - std::vector get_installed_files(const VcpkgPaths& paths, const StatusParagraphs& status_db); + std::vector get_installed_files(const VcpkgPaths& paths, const StatusParagraphs& status_db); struct CMakeVariable diff --git a/toolsrc/src/commands_install.cpp b/toolsrc/src/commands_install.cpp index 4466fdbd1..a101bc8e9 100644 --- a/toolsrc/src/commands_install.cpp +++ b/toolsrc/src/commands_install.cpp @@ -96,10 +96,10 @@ namespace vcpkg::Commands::Install } }; - static std::vector extract_files_in_triplet(const std::vector& pgh_and_files, const Triplet& triplet) + static std::vector extract_files_in_triplet(const std::vector& pgh_and_files, const Triplet& triplet) { std::vector output; - for (const StatusParagraph_and_associated_files& t : pgh_and_files) + for (const StatusParagraphAndAssociatedFiles& t : pgh_and_files) { if (t.pgh.package.spec.target_triplet() != triplet) { @@ -127,7 +127,7 @@ namespace vcpkg::Commands::Install return SortedVector(std::move(package_files)); } - static SortedVector build_list_of_installed_files(const std::vector& pgh_and_files, const Triplet& triplet) + static SortedVector build_list_of_installed_files(const std::vector& pgh_and_files, const Triplet& triplet) { std::vector installed_files = extract_files_in_triplet(pgh_and_files, triplet); const size_t installed_remove_char_count = triplet.canonical_name().size() + 1; // +1 for the slash @@ -140,7 +140,7 @@ namespace vcpkg::Commands::Install { const fs::path package_dir = paths.package_dir(binary_paragraph.spec); const Triplet& triplet = binary_paragraph.spec.target_triplet(); - const std::vector pgh_and_files = get_installed_files(paths, *status_db); + const std::vector pgh_and_files = get_installed_files(paths, *status_db); const SortedVector package_files = build_list_of_package_files(package_dir); const SortedVector installed_files = build_list_of_installed_files(pgh_and_files, triplet); diff --git a/toolsrc/src/commands_owns.cpp b/toolsrc/src/commands_owns.cpp index 7e974addb..ff7467c1e 100644 --- a/toolsrc/src/commands_owns.cpp +++ b/toolsrc/src/commands_owns.cpp @@ -7,8 +7,8 @@ namespace vcpkg::Commands::Owns { static void search_file(const VcpkgPaths& paths, const std::string& file_substr, const StatusParagraphs& status_db) { - const std::vector installed_files = get_installed_files(paths, status_db); - for (const StatusParagraph_and_associated_files& pgh_and_file : installed_files) + const std::vector installed_files = get_installed_files(paths, status_db); + for (const StatusParagraphAndAssociatedFiles& pgh_and_file : installed_files) { const StatusParagraph& pgh = pgh_and_file.pgh; diff --git a/toolsrc/src/vcpkglib.cpp b/toolsrc/src/vcpkglib.cpp index ba18dcd31..5e847019f 100644 --- a/toolsrc/src/vcpkglib.cpp +++ b/toolsrc/src/vcpkglib.cpp @@ -184,9 +184,9 @@ namespace vcpkg return installed_packages; } - std::vector get_installed_files(const VcpkgPaths& paths, const StatusParagraphs& status_db) + std::vector get_installed_files(const VcpkgPaths& paths, const StatusParagraphs& status_db) { - std::vector installed_files; + std::vector installed_files; for (const std::unique_ptr& pgh : status_db) { @@ -208,7 +208,7 @@ namespace vcpkg } ), installed_files_of_current_pgh.end()); - StatusParagraph_and_associated_files pgh_and_files = { *pgh, SortedVector(std::move(installed_files_of_current_pgh)) }; + StatusParagraphAndAssociatedFiles pgh_and_files = { *pgh, SortedVector(std::move(installed_files_of_current_pgh)) }; installed_files.push_back(std::move(pgh_and_files)); } -- cgit v1.2.3