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 owner = name;
std::string endpoint = "~" + lp->url_encode(owner); std::string endpoint = "~" + lp->url_encode(owner);
std::map<std::string, std::string> params = { std::map<std::string, std::string> params = {
{"distribution", distro.self_link}, {"distribution", distro.self_link},
{"name", name}, {"name", name_},
{"ws.op", "getPPAByName"} {"ws.op", "getPPAByName"}
}; };
auto response = lp->api_get(endpoint, params); auto response = lp->api_get(endpoint, params);

@ -41,7 +41,7 @@ public:
static std::optional<person> parse(const std::string& json_data); static std::optional<person> parse(const std::string& json_data);
// Get a PPA by name // 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 // Public member variables
std::string name; std::string name;

Loading…
Cancel
Save