mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Allow init by QList in CSequence
This commit is contained in:
@@ -59,6 +59,11 @@ namespace BlackMisc
|
||||
*/
|
||||
CSequence(std::initializer_list<T> il) : m_pimpl(new Pimpl<QList<T>>(QList<T>(il))) {}
|
||||
|
||||
/*!
|
||||
* \brief By QList of type <T>.
|
||||
*/
|
||||
CSequence(const QList<T> &list) : m_pimpl(new Pimpl<QList<T>>(QList<T>(list))) {}
|
||||
|
||||
/*!
|
||||
* \brief Copy constructor.
|
||||
*/
|
||||
@@ -506,7 +511,7 @@ namespace BlackMisc
|
||||
QFuture<TargetContainer> sortedAsync(Predicate p) const
|
||||
{
|
||||
TargetContainer result = *this;
|
||||
QFuture<TargetContainer> f = QtConcurrent::run([=]()
|
||||
QFuture<TargetContainer> f = QtConcurrent::run([ = ]()
|
||||
{
|
||||
result.sort(p);
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user