mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
refs #246 style: using c++11 brace initialization of QStringList
This commit is contained in:
@@ -46,8 +46,7 @@ namespace BlackCore
|
|||||||
this->m_vatsimBookingReader->setInterval(15 * 1000); // first read
|
this->m_vatsimBookingReader->setInterval(15 * 1000); // first read
|
||||||
|
|
||||||
// 3. VATSIM data file
|
// 3. VATSIM data file
|
||||||
QStringList dataFileUrls;
|
const QStringList dataFileUrls = { "http://info.vroute.net/vatsim-data.txt" };
|
||||||
dataFileUrls << "http://info.vroute.net/vatsim-data.txt";
|
|
||||||
this->m_vatsimDataFileReader = new CVatsimDataFileReader(dataFileUrls, this);
|
this->m_vatsimDataFileReader = new CVatsimDataFileReader(dataFileUrls, this);
|
||||||
this->connect(this->m_vatsimDataFileReader, &CVatsimDataFileReader::dataRead, this, &CContextNetwork::psDataFileRead);
|
this->connect(this->m_vatsimDataFileReader, &CVatsimDataFileReader::dataRead, this, &CContextNetwork::psDataFileRead);
|
||||||
this->m_vatsimDataFileReader->setInterval(5 * 1000); // first read, will be fixed when first read to longer period
|
this->m_vatsimDataFileReader->setInterval(5 * 1000); // first read, will be fixed when first read to longer period
|
||||||
|
|||||||
Reference in New Issue
Block a user