From 5cc9b4f127ebde541568366c434212fe9888c86c Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 1 Sep 2018 15:20:05 +0100 Subject: [PATCH] Launcher: remove some debug output --- src/GUI/QtLauncher.cxx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/GUI/QtLauncher.cxx b/src/GUI/QtLauncher.cxx index e31701460..88768d155 100644 --- a/src/GUI/QtLauncher.cxx +++ b/src/GUI/QtLauncher.cxx @@ -153,28 +153,19 @@ public: } protected: - virtual void run() Q_DECL_OVERRIDE + void run() override { - SGTimeStamp st; - st.stamp(); - loadNaturalEarthFile("ne_10m_coastline.shp", flightgear::PolyLine::COASTLINE, false); loadNaturalEarthFile("ne_10m_rivers_lake_centerlines.shp", flightgear::PolyLine::RIVER, false); loadNaturalEarthFile("ne_10m_lakes.shp", flightgear::PolyLine::LAKE, true); - - qInfo() << "load basic data took" << st.elapsedMSec(); - - st.stamp(); loadNaturalEarthFile("ne_10m_urban_areas.shp", flightgear::PolyLine::URBAN, true); - - qInfo() << "loading urban areas took:" << st.elapsedMSec(); } private: Q_SLOT void onFinished() { flightgear::PolyLineList::const_iterator begin = m_parsedLines.begin() + m_lineInsertCount; - unsigned int numToAdd = std::min(1000UL, m_parsedLines.size() - m_lineInsertCount); + unsigned int numToAdd = std::min(1000U, static_cast(m_parsedLines.size()) - m_lineInsertCount); flightgear::PolyLineList::const_iterator end = begin + numToAdd; flightgear::PolyLine::bulkAddToSpatialIndex(begin, end);