Skip to content

Commit

Permalink
dnfdaemon: Make only internally used funcs static
Browse files Browse the repository at this point in the history
  • Loading branch information
m-blaha authored and j-mracek committed Apr 8, 2024
1 parent 82208df commit 08aeee3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dnf5daemon-server/package.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ const std::map<std::string, PackageAttribute> package_attributes{
{"vendor", PackageAttribute::vendor},
{"group", PackageAttribute::group}};

std::vector<std::string> reldeplist_to_strings(const libdnf5::rpm::ReldepList & reldeps) {
static std::vector<std::string> reldeplist_to_strings(const libdnf5::rpm::ReldepList & reldeps) {
std::vector<std::string> lst;
for (auto reldep : reldeps) {
lst.emplace_back(reldep.to_string());
}
return lst;
}

std::vector<dnfdaemon::Changelog> changelogs_to_list(const libdnf5::rpm::Package & libdnf_package) {
static std::vector<dnfdaemon::Changelog> changelogs_to_list(const libdnf5::rpm::Package & libdnf_package) {
std::vector<dnfdaemon::Changelog> changelogs;

for (const auto & chlog : libdnf_package.get_changelogs()) {
Expand Down Expand Up @@ -197,7 +197,7 @@ dnfdaemon::KeyValueMap package_to_map(
return dbus_package;
}

void add_string_list(json_object * json_pkg, const char * cattr, const std::vector<std::string> & vector) {
static void add_string_list(json_object * json_pkg, const char * cattr, const std::vector<std::string> & vector) {
json_object * array = json_object_new_array();
json_object_object_add(json_pkg, cattr, array);
for (const auto & elem : vector) {
Expand Down

0 comments on commit 08aeee3

Please sign in to comment.