From 0c7669d009548616aeb754276deea974ba7a53c3 Mon Sep 17 00:00:00 2001 From: "Curtis.Bezault" Date: Wed, 24 Jul 2019 14:24:49 -0700 Subject: store fs::path instead of std::string --- toolsrc/include/vcpkg/binaryparagraph.h | 4 ++-- toolsrc/src/vcpkg/binaryparagraph.cpp | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'toolsrc') diff --git a/toolsrc/include/vcpkg/binaryparagraph.h b/toolsrc/include/vcpkg/binaryparagraph.h index 8099367c2..d75e4abb1 100644 --- a/toolsrc/include/vcpkg/binaryparagraph.h +++ b/toolsrc/include/vcpkg/binaryparagraph.h @@ -3,7 +3,7 @@ #include #include -#include +#include namespace vcpkg { @@ -40,7 +40,7 @@ namespace vcpkg std::vector default_features; std::vector depends; std::string abi; - std::unordered_map external_files; + std::map external_files; mutable ConsistencyState consistency = ConsistencyState::UNKNOWN; }; diff --git a/toolsrc/src/vcpkg/binaryparagraph.cpp b/toolsrc/src/vcpkg/binaryparagraph.cpp index 9b1a8e201..f571e0e8e 100644 --- a/toolsrc/src/vcpkg/binaryparagraph.cpp +++ b/toolsrc/src/vcpkg/binaryparagraph.cpp @@ -100,7 +100,9 @@ namespace vcpkg this->spec); } - for (int i = 0; i < external_files_or_hashes.size(); i += 2) + for (decltype(external_files_or_hashes)::size_type i = 0; + i < external_files_or_hashes.size(); + i += 2) { external_files.emplace( std::move(external_files_or_hashes[i]), -- cgit v1.2.3