mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
Issue #74 Style: remove egregious redundancy in CCoreFacadeConfig
This commit is contained in:
@@ -58,25 +58,21 @@ namespace BlackCore
|
||||
|
||||
CCoreFacadeConfig CCoreFacadeConfig::forCoreAllLocalInDBus(const QString &dbusBootstrapAddress)
|
||||
{
|
||||
const CCoreFacadeConfig cfg(CCoreFacadeConfig::LocalInDBusServer, dbusBootstrapAddress);
|
||||
return cfg;
|
||||
return { LocalInDBusServer, dbusBootstrapAddress };
|
||||
}
|
||||
|
||||
CCoreFacadeConfig CCoreFacadeConfig::local(const QString &dbusBootstrapAddress)
|
||||
{
|
||||
const CCoreFacadeConfig cfg = CCoreFacadeConfig(CCoreFacadeConfig(CCoreFacadeConfig::Local, dbusBootstrapAddress));
|
||||
return cfg;
|
||||
return { Local, dbusBootstrapAddress };
|
||||
}
|
||||
|
||||
CCoreFacadeConfig CCoreFacadeConfig::remote(const QString &dbusBootstrapAddress)
|
||||
{
|
||||
CCoreFacadeConfig cfg = CCoreFacadeConfig(CCoreFacadeConfig(CCoreFacadeConfig::Remote, dbusBootstrapAddress));
|
||||
return cfg;
|
||||
return { Remote, dbusBootstrapAddress };
|
||||
}
|
||||
|
||||
CCoreFacadeConfig CCoreFacadeConfig::allEmpty()
|
||||
{
|
||||
CCoreFacadeConfig cfg = CCoreFacadeConfig();
|
||||
return cfg;
|
||||
return {};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user