From 6ac7eb7bfb290735e37d2497aee9a1e417e9f403 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Mon, 3 Apr 2017 16:21:21 -0700 Subject: package_name_and_function -> PackageNameAndFunction --- toolsrc/include/vcpkg_Commands.h | 12 ++++++------ toolsrc/src/commands_available_commands.cpp | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/toolsrc/include/vcpkg_Commands.h b/toolsrc/include/vcpkg_Commands.h index c6473fa8b..0cdd2d9d0 100644 --- a/toolsrc/include/vcpkg_Commands.h +++ b/toolsrc/include/vcpkg_Commands.h @@ -154,20 +154,20 @@ namespace vcpkg::Commands } template - struct package_name_and_function + struct PackageNameAndFunction { std::string name; T function; }; - const std::vector>& get_available_commands_type_a(); - const std::vector>& get_available_commands_type_b(); - const std::vector>& get_available_commands_type_c(); + const std::vector>& get_available_commands_type_a(); + const std::vector>& get_available_commands_type_b(); + const std::vector>& get_available_commands_type_c(); template - T find(const std::string& command_name, const std::vector> available_commands) + T find(const std::string& command_name, const std::vector> available_commands) { - for (const package_name_and_function& cmd : available_commands) + for (const PackageNameAndFunction& cmd : available_commands) { if (cmd.name == command_name) { diff --git a/toolsrc/src/commands_available_commands.cpp b/toolsrc/src/commands_available_commands.cpp index 45ece8ed9..1af82eb8a 100644 --- a/toolsrc/src/commands_available_commands.cpp +++ b/toolsrc/src/commands_available_commands.cpp @@ -3,9 +3,9 @@ namespace vcpkg::Commands { - const std::vector>& get_available_commands_type_a() + const std::vector>& get_available_commands_type_a() { - static std::vector> t = { + static std::vector> t = { {"install", &Install::perform_and_exit}, { "ci", &CI::perform_and_exit }, {"remove", &Remove::perform_and_exit}, @@ -16,9 +16,9 @@ namespace vcpkg::Commands return t; } - const std::vector>& get_available_commands_type_b() + const std::vector>& get_available_commands_type_b() { - static std::vector> t = { + static std::vector> t = { {"/?", &Help::perform_and_exit}, {"help", &Help::perform_and_exit}, {"search", &Search::perform_and_exit}, @@ -35,9 +35,9 @@ namespace vcpkg::Commands return t; } - const std::vector>& get_available_commands_type_c() + const std::vector>& get_available_commands_type_c() { - static std::vector> t = { + static std::vector> t = { {"version", &Version::perform_and_exit}, {"contact", &Contact::perform_and_exit}, {"hash", &Hash::perform_and_exit}, -- cgit v1.2.3