mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01:00
Make StatusParagraph::find_installed() const
This commit is contained in:
parent
f227500848
commit
37f45b9d5f
@ -20,7 +20,7 @@ namespace vcpkg
|
||||
}
|
||||
const_iterator find(const std::string& name, const triplet& target_triplet) const;
|
||||
iterator find(const std::string& name, const triplet& target_triplet);
|
||||
iterator find_installed(const std::string& name, const triplet& target_triplet);
|
||||
const_iterator find_installed(const std::string& name, const triplet& target_triplet) const;
|
||||
|
||||
iterator insert(std::unique_ptr<StatusParagraph>);
|
||||
|
||||
|
@ -29,9 +29,9 @@ namespace vcpkg
|
||||
});
|
||||
}
|
||||
|
||||
StatusParagraphs::iterator StatusParagraphs::find_installed(const std::string& name, const triplet& target_triplet)
|
||||
StatusParagraphs::const_iterator StatusParagraphs::find_installed(const std::string& name, const triplet& target_triplet) const
|
||||
{
|
||||
auto it = find(name, target_triplet);
|
||||
const const_iterator it = find(name, target_triplet);
|
||||
if (it != end() && (*it)->want == want_t::install)
|
||||
{
|
||||
return it;
|
||||
|
Loading…
x
Reference in New Issue
Block a user