mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Ref T275 testaircraftsituation: detach lists to get meaningful benchmark results.
This commit is contained in:
@@ -262,6 +262,9 @@ namespace BlackMisc
|
||||
return this->to(QList<T>());
|
||||
}
|
||||
|
||||
//! \private Calls detach on the internal QMap.
|
||||
void detach() { m_impl.detach(); }
|
||||
|
||||
//! Test for equality.
|
||||
bool operator ==(const CCollection &other) const { return m_impl == other.m_impl; }
|
||||
|
||||
|
||||
@@ -533,6 +533,9 @@ namespace BlackMisc
|
||||
return separateBy([k](const T &v) { return v.*k; });
|
||||
}
|
||||
|
||||
//! \private Calls detach on the internal QVector.
|
||||
void detach() { m_impl.detach(); }
|
||||
|
||||
//! Equals operator.
|
||||
friend bool operator ==(const CSequence &a, const CSequence &b) { return a.m_impl == b.m_impl; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user