From 5bad11dcca10445586e5a44dd58a944877be7e05 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Thu, 26 Feb 2015 21:56:08 +0100 Subject: [PATCH] Allow init by QList in CSequence --- src/blackmisc/sequence.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/blackmisc/sequence.h b/src/blackmisc/sequence.h index 3976407ff..9c1a87ffc 100644 --- a/src/blackmisc/sequence.h +++ b/src/blackmisc/sequence.h @@ -59,6 +59,11 @@ namespace BlackMisc */ CSequence(std::initializer_list il) : m_pimpl(new Pimpl>(QList(il))) {} + /*! + * \brief By QList of type . + */ + CSequence(const QList &list) : m_pimpl(new Pimpl>(QList(list))) {} + /*! * \brief Copy constructor. */ @@ -506,7 +511,7 @@ namespace BlackMisc QFuture sortedAsync(Predicate p) const { TargetContainer result = *this; - QFuture f = QtConcurrent::run([=]() + QFuture f = QtConcurrent::run([ = ]() { result.sort(p); return result;