refs #246 style: using c++11 brace initialization of QStringList

This commit is contained in:
Mathew Sutcliffe
2014-06-11 19:11:30 +01:00
parent 415e0d6542
commit 6ee14128bd

View File

@@ -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