refactor: Simplify calls by not chaining

This commit is contained in:
Lars Toenning
2024-12-23 17:08:23 +01:00
parent a3b5595627
commit 12f9f399e0
17 changed files with 47 additions and 43 deletions

View File

@@ -120,11 +120,10 @@ namespace swift::core::context
Qt::QueuedConnection);
}
CContextNetwork *CContextNetwork::registerWithDBus(swift::misc::CDBusServer *server)
void CContextNetwork::registerWithDBus(swift::misc::CDBusServer *server)
{
if (!server || getMode() != CCoreFacadeConfig::LocalInDBusServer) return this;
if (!server || getMode() != CCoreFacadeConfig::LocalInDBusServer) { return; };
server->addObject(IContextNetwork::ObjectPath(), this);
return this;
}
void CContextNetwork::setSimulationEnvironmentProvider(ISimulationEnvironmentProvider *provider)