diff --git a/src/person.cpp b/src/person.cpp index 03d94ef..cb262d7 100644 --- a/src/person.cpp +++ b/src/person.cpp @@ -67,12 +67,12 @@ void person::parse_json(const std::string& json_data) { } } -std::optional person::getPPAByName(distribution& distro, const std::string& name) { +std::optional person::getPPAByName(distribution& distro, const std::string& name_) { std::string owner = name; std::string endpoint = "~" + lp->url_encode(owner); std::map params = { {"distribution", distro.self_link}, - {"name", name}, + {"name", name_}, {"ws.op", "getPPAByName"} }; auto response = lp->api_get(endpoint, params); diff --git a/src/person.h b/src/person.h index 7fa84a9..4c23c88 100644 --- a/src/person.h +++ b/src/person.h @@ -41,7 +41,7 @@ public: static std::optional parse(const std::string& json_data); // Get a PPA by name - std::optional getPPAByName(distribution& distribution, const std::string& name); + std::optional getPPAByName(distribution& distribution, const std::string& name_); // Public member variables std::string name;