diff --git a/dnf5daemon-server/session.hpp b/dnf5daemon-server/session.hpp index de46d5ed7..1bd2ee944 100644 --- a/dnf5daemon-server/session.hpp +++ b/dnf5daemon-server/session.hpp @@ -70,7 +70,7 @@ class Session { return dnfdaemon::key_value_map_get(session_configuration, key); } - std::string get_object_path() { return object_path; }; + const sdbus::ObjectPath &get_object_path() const { return object_path; }; sdbus::IConnection & get_connection() { return connection; }; libdnf5::Base * get_base() { return base.get(); }; ThreadsManager & get_threads_manager() { return threads_manager; }; @@ -105,7 +105,7 @@ class Session { libdnf5::Goal goal; std::unique_ptr transaction{nullptr}; dnfdaemon::KeyValueMap session_configuration; - std::string object_path; + sdbus::ObjectPath object_path; std::vector> services{}; ThreadsManager threads_manager; std::atomic repositories_status{dnfdaemon::RepoStatus::NOT_READY};