aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorDaniel Shaw <t-dansha@microsoft.com>2017-06-27 14:52:26 -0700
committerDaniel Shaw <t-dansha@microsoft.com>2017-06-27 15:46:40 -0700
commit7944f9f7779ebbc0923efd27cff268ac23b1c312 (patch)
tree25ab659f0362bd6b8e7a075b29eb2322c0dabe5e /toolsrc/include
parentcc06f978914917622904a0326094c1d5fba4118e (diff)
downloadvcpkg-7944f9f7779ebbc0923efd27cff268ac23b1c312.tar.gz
vcpkg-7944f9f7779ebbc0923efd27cff268ac23b1c312.zip
refactor create_install_plan tests
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg_Dependencies.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/include/vcpkg_Dependencies.h b/toolsrc/include/vcpkg_Dependencies.h
index da31aa4bf..c8e15de27 100644
--- a/toolsrc/include/vcpkg_Dependencies.h
+++ b/toolsrc/include/vcpkg_Dependencies.h
@@ -97,13 +97,13 @@ namespace vcpkg::Dependencies
RequestType request_type;
};
- __interface PortFileProvider { virtual const SourceControlFile* get_control_file(const PackageSpec& spec) const; };
+ __interface PortFileProvider { virtual const SourceControlFile& get_control_file(const PackageSpec& spec) const; };
struct MapPortFile : PortFileProvider
{
const std::unordered_map<PackageSpec, SourceControlFile>& ports;
explicit MapPortFile(const std::unordered_map<PackageSpec, SourceControlFile>& map);
- const SourceControlFile* get_control_file(const PackageSpec& spec) const override;
+ const SourceControlFile& get_control_file(const PackageSpec& spec) const override;
};
struct PathsPortFile : PortFileProvider
@@ -111,7 +111,7 @@ namespace vcpkg::Dependencies
const VcpkgPaths& ports;
mutable std::unordered_map<PackageSpec, SourceControlFile> cache;
explicit PathsPortFile(const VcpkgPaths& paths);
- const SourceControlFile* get_control_file(const PackageSpec& spec) const override;
+ const SourceControlFile& get_control_file(const PackageSpec& spec) const override;
};
std::vector<InstallPlanAction> create_install_plan(const PortFileProvider& port_file_provider,