|author||Thiago Macieira <firstname.lastname@example.org>||2014-08-04 23:57:51 -0300|
|committer||Oswald Buddenhagen <email@example.com>||2014-08-09 09:05:43 +0200|
Move the special QByteArrayList methods into QList
and make QByteArrayList be a simple typedef. As a side-effect, the constructor taking a QByteArray is no longer available since I couldn't find a way to add it to QList<T> when T is QByteArray. My template-foo failed me. I tried: - QEnableIf<is_same<T, QByteArray>::value, QByteArray>::type => makes QList fail to compile for any T that isn't QByteArray - make the constructor a template member => it compiles if the parameter is a QByteArray, but not a const char like the test was - inheriting constructors => runs into ICC and Clang bugs that I could not work around Besides, the constructor with std::initializer_list is a superior solution anyway. Change-Id: Ic86fbadc1104142bfd907a5c4147199bf839fb89 Reviewed-by: Marc Mutz <firstname.lastname@example.org> Reviewed-by: Jędrzej Nowacki <email@example.com>
Diffstat (limited to 'src/corelib/tools/qlist.cpp')
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/tools/qlist.cpp b/src/corelib/tools/qlist.cpp
index db49fe9802..2f9a7ca80f 100644
@@ -476,6 +476,11 @@ void **QListData::erase(void **xi)
value that might not be in the valid range, check that it is less
than the value returned by size() but \e not less than 0.
+ \section1 More members
+ If T is a QByteArray, this class has a couple more members that can be
+ used. See the documentation for QByteArrayList for more information.
\sa QListIterator, QMutableListIterator, QLinkedList, QVector