refactor: inline simple getters in qt client (#6621)

* refactor: make RpcClient::url() constexpr

* refactor: make Session::getRemoteUrl() constexpr

* refactor: make RpcQueue::setTolerateErrors() constexpr

* refactor: make RpcClient::isLocal() constexpr

* refactor: make Session::isLocal() constexpr

* refactor: make Session::isServer() constexpr

* refactor: make PathButton::label() constexpr

* chore: remove accidentally-committed makelog file
This commit is contained in:
Charles Kerr
2024-02-18 18:48:27 -06:00
committed by GitHub
parent b1b685af3f
commit a90d0fce2b
8 changed files with 28 additions and 52 deletions

View File

@@ -386,24 +386,7 @@ void Session::start()
emit sourceChanged();
}
bool Session::isServer() const
{
return session_ != nullptr;
}
bool Session::isLocal() const
{
if (!session_id_.isEmpty())
{
return is_definitely_local_session_;
}
return rpc_.isLocal();
}
/***
****
***/
// ---
void Session::addOptionalIds(tr_variant* args_dict, torrent_ids_t const& torrent_ids) const
{