[StatusParagraph] target_triplet -> triplet
MODIFY
include/StatusParagraphs.h
include/StatusParagraphs.h
@@ -18,14 +18,14 @@ namespace vcpkg
{
return find(spec.name(), spec.triplet());
}
- const_iterator find(const std::string& name, const Triplet& target_triplet) const;
- iterator find(const std::string& name, const Triplet& target_triplet);
+ const_iterator find(const std::string& name, const Triplet& triplet) const;
+ iterator find(const std::string& name, const Triplet& triplet);
const_iterator find_installed(const PackageSpec& spec) const
{
return find_installed(spec.name(), spec.triplet());
}
- const_iterator find_installed(const std::string& name, const Triplet& target_triplet) const;
+ const_iterator find_installed(const std::string& name, const Triplet& triplet) const;
iterator insert(std::unique_ptr<StatusParagraph>);

MODIFY
src/StatusParagraphs.cpp
src/StatusParagraphs.cpp
#include "pch.h"
#include "StatusParagraphs.h"
#include "vcpkg_Checks.h"
+#include <algorithm>
+#include <algorithm>
+#include <algorithm>
namespace vcpkg
{
@@ -11,27 +14,27 @@ namespace vcpkg
{
};
- StatusParagraphs::const_iterator StatusParagraphs::find(const std::string& name, const Triplet& target_triplet) const
+ StatusParagraphs::const_iterator StatusParagraphs::find(const std::string& name, const Triplet& triplet) const
{
return std::find_if(begin(), end(), [&](const std::unique_ptr<StatusParagraph>& pgh)
{
const PackageSpec& spec = pgh->package.spec;
- return spec.name() == name && spec.triplet() == target_triplet;
+ return spec.name() == name && spec.triplet() == triplet;
});
}
- StatusParagraphs::iterator StatusParagraphs::find(const std::string& name, const Triplet& target_triplet)
+ StatusParagraphs::iterator StatusParagraphs::find(const std::string& name, const Triplet& triplet)
{
return std::find_if(begin(), end(), [&](const std::unique_ptr<StatusParagraph>& pgh)
{
const PackageSpec& spec = pgh->package.spec;
- return spec.name() == name && spec.triplet() == target_triplet;
+ return spec.name() == name && spec.triplet() == triplet;
});
}
- StatusParagraphs::const_iterator StatusParagraphs::find_installed(const std::string& name, const Triplet& target_triplet) const
+ StatusParagraphs::const_iterator StatusParagraphs::find_installed(const std::string& name, const Triplet& triplet) const
{
- const const_iterator it = find(name, target_triplet);
+ const const_iterator it = find(name, triplet);
if (it != end() && (*it)->want == Want::INSTALL && (*it)->state == InstallState::INSTALLED)
{
return it;

[StatusParagraph] target_triplet -> triplet