From: Rebecca N. Palmer Date: Mon, 21 Sep 2015 21:12:24 +0000 (+0100) Subject: Use +=, not (5.5+ only) append, for concatenating QVectors X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a64cf822963bd0a423ffdadd1899206e126c6828;p=flightgear.git Use +=, not (5.5+ only) append, for concatenating QVectors --- 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) {