]> git.mxchange.org Git - flightgear.git/commitdiff
Use +=, not (5.5+ only) append, for concatenating QVectors
authorRebecca N. Palmer <rebecca_palmer@zoho.com>
Mon, 21 Sep 2015 21:12:24 +0000 (22:12 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Mon, 21 Sep 2015 21:12:24 +0000 (22:12 +0100)
src/GUI/AircraftModel.cxx

index 85735c05940fcc23c4906738000666f0783e24d8..f8dc22a32f1e5aa49cab2a8e4d066dc7c5705bf1 100644 (file)
@@ -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) {