store fs::path instead of std::string

This commit is contained in:
Curtis.Bezault 2019-07-24 14:24:49 -07:00
parent d68b9a08b1
commit 0c7669d009
2 changed files with 5 additions and 3 deletions

View File

@ -3,7 +3,7 @@
#include <vcpkg/packagespec.h>
#include <vcpkg/sourceparagraph.h>
#include <unordered_map>
#include <map>
namespace vcpkg
{
@ -40,7 +40,7 @@ namespace vcpkg
std::vector<std::string> default_features;
std::vector<std::string> depends;
std::string abi;
std::unordered_map<std::string, std::string> external_files;
std::map<fs::path, std::string> external_files;
mutable ConsistencyState consistency = ConsistencyState::UNKNOWN;
};

View File

@ -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]),