From 6ee14128bd5a39df9ba492cef43f630b005fa672 Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Wed, 11 Jun 2014 19:11:30 +0100 Subject: [PATCH] refs #246 style: using c++11 brace initialization of QStringList --- src/blackcore/context_network_impl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/blackcore/context_network_impl.cpp b/src/blackcore/context_network_impl.cpp index 396b6a5c0..281293f8c 100644 --- a/src/blackcore/context_network_impl.cpp +++ b/src/blackcore/context_network_impl.cpp @@ -46,8 +46,7 @@ namespace BlackCore this->m_vatsimBookingReader->setInterval(15 * 1000); // first read // 3. VATSIM data file - QStringList dataFileUrls; - dataFileUrls << "http://info.vroute.net/vatsim-data.txt"; + const QStringList dataFileUrls = { "http://info.vroute.net/vatsim-data.txt" }; this->m_vatsimDataFileReader = new CVatsimDataFileReader(dataFileUrls, this); 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