From a64cf822963bd0a423ffdadd1899206e126c6828 Mon Sep 17 00:00:00 2001 From: "Rebecca N. Palmer" <rebecca_palmer@zoho.com> Date: Mon, 21 Sep 2015 22:12:24 +0100 Subject: [PATCH] Use +=, not (5.5+ only) append, for concatenating QVectors --- src/GUI/AircraftModel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GUI/AircraftModel.cxx b/src/GUI/AircraftModel.cxx index 85735c059..f8dc22a32 100644 --- a/src/GUI/AircraftModel.cxx +++ b/src/GUI/AircraftModel.cxx @@ -285,7 +285,7 @@ private: // lock mutex while we modify the items array { QMutexLocker g(&m_lock); - m_items.append(baseAircraft.values().toVector()); + m_items+=(baseAircraft.values().toVector()); } emit addedItems(); @@ -709,7 +709,7 @@ void AircraftItemModel::onScanResults() int firstRow = m_items.count(); int lastRow = firstRow + newItems.count() - 1; beginInsertRows(QModelIndex(), firstRow, lastRow); - m_items.append(newItems); + m_items+=newItems; // default variants in all cases for (int i=0; i< newItems.count(); ++i) {