mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
store fs::path instead of std::string
This commit is contained in:
parent
d68b9a08b1
commit
0c7669d009
@ -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;
|
||||
};
|
||||
|
@ -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]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user