clang-format src

This commit is contained in:
Lars Toenning
2023-04-13 14:20:16 +02:00
parent ba41d4887b
commit 970b7c3650
1501 changed files with 20326 additions and 17820 deletions

View File

@@ -34,10 +34,9 @@ using namespace BlackCore::Data;
namespace BlackCore::Vatsim
{
CVatsimServerFileReader::CVatsimServerFileReader(QObject *owner) :
CThreadedReader(owner, "CVatsimServerFileReader"),
CEcosystemAware(CEcosystemAware::providerIfPossible(owner))
{ }
CVatsimServerFileReader::CVatsimServerFileReader(QObject *owner) : CThreadedReader(owner, "CVatsimServerFileReader"),
CEcosystemAware(CEcosystemAware::providerIfPossible(owner))
{}
CServerList CVatsimServerFileReader::getFsdServers() const
{
@@ -47,8 +46,7 @@ namespace BlackCore::Vatsim
void CVatsimServerFileReader::readInBackgroundThread()
{
QPointer<CVatsimServerFileReader> myself(this);
QTimer::singleShot(0, this, [ = ]
{
QTimer::singleShot(0, this, [=] {
if (!myself) { return; }
myself->read();
});
@@ -69,7 +67,7 @@ namespace BlackCore::Vatsim
Q_ASSERT_X(sApp, Q_FUNC_INFO, "Missing application");
const QUrl url = sApp->getVatsimServerFileUrl();
if (url.isEmpty()) { return; }
this->getFromNetworkAndLog(url, { this, &CVatsimServerFileReader::parseVatsimFile});
this->getFromNetworkAndLog(url, { this, &CVatsimServerFileReader::parseVatsimFile });
}
void CVatsimServerFileReader::parseVatsimFile(QNetworkReply *nwReplyPtr)