Use a unique variable name

main
Simon Quigley 1 week ago
parent fc95337bb7
commit 5c6bc915ba

@ -67,12 +67,12 @@ void person::parse_json(const std::string& json_data) {
}
}
std::optional<archive> person::getPPAByName(distribution& distro, const std::string& name) {
std::optional<archive> person::getPPAByName(distribution& distro, const std::string& name_) {
std::string owner = name;
std::string endpoint = "~" + lp->url_encode(owner);
std::map<std::string, std::string> params = {
{"distribution", distro.self_link},
{"name", name},
{"name", name_},
{"ws.op", "getPPAByName"}
};
auto response = lp->api_get(endpoint, params);

@ -41,7 +41,7 @@ public:
static std::optional<person> parse(const std::string& json_data);
// Get a PPA by name
std::optional<archive> getPPAByName(distribution& distribution, const std::string& name);
std::optional<archive> getPPAByName(distribution& distribution, const std::string& name_);
// Public member variables
std::string name;

Loading…
Cancel
Save