mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Return const &
This commit is contained in:
@@ -1027,12 +1027,18 @@ namespace BlackCore
|
||||
return m_network && m_network->isConnected();
|
||||
}
|
||||
|
||||
const CServer CAirspaceMonitor::getConnectedServer() const
|
||||
const CServer &CAirspaceMonitor::getConnectedServer() const
|
||||
{
|
||||
if (!this->isConnected()) { return CServer(); }
|
||||
static const CServer empty;
|
||||
if (!this->isConnected()) { return empty; }
|
||||
return m_network->getPresetServer();
|
||||
}
|
||||
|
||||
const CEcosystem &CAirspaceMonitor::getCurrentEcosystem() const
|
||||
{
|
||||
return this->getConnectedServer().getEcosystem();
|
||||
}
|
||||
|
||||
bool CAirspaceMonitor::supportsVatsimDataFile() const
|
||||
{
|
||||
const bool dataFile = sApp && sApp->getWebDataServices() && sApp->getWebDataServices()->getVatsimDataFileReader();
|
||||
|
||||
Reference in New Issue
Block a user