mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user