qt6-bb10/src/corelib/tools
Thiago Macieira f1540a2966 Fix capacity reservation for shared QByteArray
We can squeeze, but not by discarding elements. Make sure the size of
the object stays intact after changing the reserved capacity.

I've also added unit tests for other containers, just to be sure.

Task-number: QTBUG-37750
Change-Id: I5135b095943b7589423c51cebcb52af792468e61
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
2014-04-05 05:23:07 +02:00
..
qalgorithms.h Used QT_DEPRECATED_X in QtAlgorithms 2013-10-21 00:13:33 +02:00
qalgorithms.qdoc Docs: properly tag QtAlgorithms functions as deprecated 2014-02-17 15:37:42 +01:00
qarraydata.cpp Fix configure warnings on Windows 7 with MSVC2010. 2013-09-25 13:39:14 +02:00
qarraydata.h Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qarraydataops.h Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qarraydatapointer.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qbitarray.cpp Merge remote-tracking branch 'origin/stable' into dev 2014-02-07 13:07:25 +01:00
qbitarray.h Add some easy move constructors 2013-04-05 13:29:43 +02:00
qbytearray.cpp Add Objective-C specific type converters to QByteArray 2014-03-08 00:21:53 +01:00
qbytearray.h Fix capacity reservation for shared QByteArray 2014-04-05 05:23:07 +02:00
qbytearray_mac.mm Add Objective-C specific type converters to QByteArray 2014-03-08 00:21:53 +01:00
qbytearraymatcher.cpp Remove use of 'register' from Qt. 2013-06-17 09:44:22 +02:00
qbytearraymatcher.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qbytedata_p.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qcache.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qcache.qdoc Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qchar.cpp Introduce QChar::JoiningType enum and QChar::joiningType() method 2014-01-29 23:19:47 +01:00
qchar.h Introduce QChar::JoiningType enum and QChar::joiningType() method 2014-01-29 23:19:47 +01:00
qcollator.cpp QCollatorSortKey: inline operator< 2013-11-17 09:47:34 +01:00
qcollator.h QCollatorSortKey: inline operator< 2013-11-17 09:47:34 +01:00
qcollator_icu.cpp QCollatorSortKey: inline operator< 2013-11-17 09:47:34 +01:00
qcollator_macx.cpp QCollatorSortKey: inline operator< 2013-11-17 09:47:34 +01:00
qcollator_p.h Don't use Mac OS X QCollator backend on iOS 2013-09-16 23:19:06 +02:00
qcollator_posix.cpp QCollatorSortKey: inline operator< 2013-11-17 09:47:34 +01:00
qcollator_win.cpp Merge remote-tracking branch 'origin/stable' into dev 2013-11-26 22:35:48 +01:00
qcommandlineoption.cpp Doc: argument(s) was renamed to value(s), adjust QCommandLineOption docs 2014-01-30 21:47:34 +01:00
qcommandlineoption.h QCommandLineOption: declare as shared 2013-10-07 01:08:09 +02:00
qcommandlineparser.cpp Use QCommandLineParser in example dnslookup. 2014-03-15 10:44:41 +01:00
qcommandlineparser.h Long live QCommandLineParser! 2013-08-24 21:33:39 +02:00
qcontainerfwd.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qcontiguouscache.cpp Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qcontiguouscache.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qcryptographichash.cpp Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qcryptographichash.h Ensure that bootstrapped users of QCryptographicHash only use SHA-1 2013-08-15 01:30:54 +02:00
qdatetime.cpp Correctly manipulate tm_gmtoff the way qt_timezone() needs. 2014-02-07 18:58:02 +01:00
qdatetime.h QDateTime - Add QTimeZone support 2013-09-23 01:14:03 +02:00
qdatetime_p.h QDateTime - Fix round-trip of second occurrence times 2013-09-27 21:47:55 +02:00
qdatetimeparser.cpp Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qdatetimeparser_p.h Fix some typos 2014-03-03 18:24:29 +01:00
qeasingcurve.cpp Doc: correction link, example and parameter issues qtbase 2014-03-10 16:02:19 +01:00
qeasingcurve.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qelapsedtimer.cpp Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qelapsedtimer.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qelapsedtimer_generic.cpp Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qelapsedtimer_mac.cpp Switch to struct timespec everywhere instead of timeval 2013-01-28 07:13:23 +01:00
qelapsedtimer_unix.cpp Switch to struct timespec everywhere instead of timeval 2013-01-28 07:13:23 +01:00
qelapsedtimer_win.cpp WinRT: Compile fix for qelapsedtimer_win.cpp 2013-09-20 13:54:06 +02:00
qfreelist.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qfreelist_p.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qharfbuzz.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qharfbuzz_p.h Replace HB_JustificationClass with QGlyphAttributes::JustificationClass 2013-04-01 11:53:58 +02:00
qhash.cpp QHash: use prime numbers when rebucketing 2014-02-19 23:53:01 +01:00
qhash.h Remove level 4 compiler warnings from MSVC. 2014-03-15 10:46:17 +01:00
qiterator.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qiterator.qdoc Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qline.cpp Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qline.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qlinkedlist.cpp Improve implicit shared documentation a bit 2013-10-15 12:10:01 +02:00
qlinkedlist.h expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
qlist.cpp Improve implicit shared documentation a bit 2013-10-15 12:10:01 +02:00
qlist.h Remove level 4 compiler warnings from MSVC. 2014-03-15 10:46:17 +01:00
qlocale.cpp Centralize the merging toFloat conversions 2014-02-16 05:11:18 +01:00
qlocale.h Update the internal CLDR tables up to v.24 2014-01-13 19:02:10 +01:00
qlocale.qdoc Update the internal CLDR tables up to v.24 2014-01-13 19:02:10 +01:00
qlocale_blackberry.cpp Fix qlocale_blackberry buffer initialization 2013-12-17 19:05:50 +01:00
qlocale_blackberry.h Fix typos in QBBSystemLocaleData 2013-03-30 10:50:40 +01:00
qlocale_data_p.h Update the internal CLDR tables up to v.24 2014-01-13 19:02:10 +01:00
qlocale_icu.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qlocale_mac.mm QLocale - Mac fix typos in comments 2013-10-17 01:50:16 +02:00
qlocale_p.h Centralize the merging toFloat conversions 2014-02-16 05:11:18 +01:00
qlocale_tools.cpp QLocalePrivate: merge removeGroupSeparators into numberToCLocale 2014-02-14 00:34:25 +01:00
qlocale_tools_p.h QLocalePrivate: merge removeGroupSeparators into numberToCLocale 2014-02-14 00:34:25 +01:00
qlocale_unix.cpp Fix QLocale::standaloneMonthName when d->m_data == systemData() 2013-05-01 21:05:33 +02:00
qlocale_win.cpp QLocalePrivate: move the xxxToString functions to QLocaleData 2014-02-14 00:34:25 +01:00
qmap.cpp Doc: Add missing \since 5.2 to QMap::first/last{,Key} 2013-11-14 21:15:35 +01:00
qmap.h Remove level 4 compiler warnings from MSVC. 2014-03-15 10:46:17 +01:00
qmargins.cpp Fix some documentation errors. 2014-03-24 16:42:02 +01:00
qmargins.h QMarginsF - Add new QMarginsF class 2014-02-21 20:33:10 +01:00
qmessageauthenticationcode.cpp Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qmessageauthenticationcode.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qpair.h Add a pair of constructor/assignment function pairs to QPair 2013-05-08 06:05:35 +02:00
qpair.qdoc Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qpodlist_p.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qpoint.cpp Mark QPoint, QPointF, QRect, QRectF as reentrant. 2014-03-27 17:51:21 +01:00
qpoint.h Fix compilation with Clang on MacOS. 2013-02-19 10:35:06 +01:00
qqueue.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qqueue.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qrect.cpp Mark QPoint, QPointF, QRect, QRectF as reentrant. 2014-03-27 17:51:21 +01:00
qrect.h QMarginsF - Add new QMarginsF class 2014-02-21 20:33:10 +01:00
qrefcount.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qrefcount.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qregexp.cpp Fix typos in QRegExp documentation 2014-03-19 15:43:46 +01:00
qregexp.h expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
qregularexpression.cpp Repack structs with more than one padding hole 2013-12-03 21:53:38 +01:00
qregularexpression.h Make sure that we #include qconfig.h before testing for features. 2013-03-19 07:02:57 +01:00
qringbuffer_p.h Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qscopedpointer.cpp Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qscopedpointer.h Revert "Implement move-ctor and move-assignment-op for QScopedPointer" 2013-09-05 08:20:19 +02:00
qscopedpointer_p.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qscopedvaluerollback.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qscopedvaluerollback.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qset.h QSet - check if iterator argument is valid (in debugmode) 2013-07-12 16:15:44 +02:00
qset.qdoc Remove incomplete paragraph from QSet::iterator documentation 2014-02-14 12:24:35 +01:00
qshareddata.cpp Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qshareddata.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qsharedpointer.cpp Doc: document QSharedPointer::swap() method 2014-03-17 20:52:46 +01:00
qsharedpointer.h Doc: document QSharedPointer::swap() method 2014-03-17 20:52:46 +01:00
qsharedpointer_impl.h Remove use of 'register' from Qt. 2013-06-17 09:44:22 +02:00
qsimd.cpp Use qregister(u)int in qsimd.cpp x86 code 2014-02-01 00:58:19 +01:00
qsimd_p.h Fix compile for embedded Android 2014-03-31 12:13:15 +02:00
qsize.cpp Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qsize.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qstack.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qstack.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qstring.cpp Don't read before the beginning of the string 2014-04-04 19:32:21 +02:00
qstring.h Remove useless Q_NO_DECLARED_NOT_DEFINED flag 2014-03-25 12:43:23 +01:00
qstring_compat.cpp Fix configure & qmake compilation with a future MSVC version 2014-02-01 06:56:45 +01:00
qstring_mac.mm Add Mac type conversion functions to QtCore 2013-09-21 05:09:41 +02:00
qstring_mips_dsp_asm.S MIPS DSP build system fix and additional optimizations. 2014-01-14 18:52:14 +01:00
qstringbuilder.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qstringbuilder.h Remove level 4 compiler warnings from MSVC. 2014-03-15 10:46:17 +01:00
qstringiterator.qdoc Long live QStringIterator! 2014-02-07 04:47:04 +01:00
qstringiterator_p.h Long live QStringIterator! 2014-02-07 04:47:04 +01:00
qstringlist.cpp expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
qstringlist.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qstringmatcher.cpp Remove use of 'register' from Qt. 2013-06-17 09:44:22 +02:00
qstringmatcher.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qtextboundaryfinder.cpp Doc: Adding mark-up to boolean default values. 2013-10-08 00:46:27 +02:00
qtextboundaryfinder.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qtimeline.cpp Repack structs with more than one padding hole 2013-12-03 21:53:38 +01:00
qtimeline.h Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
qtimezone.cpp QTimeZone - Change from Olson ID to IANA ID 2014-01-11 17:23:25 +01:00
qtimezone.h QTimeZone - Change Olsen ID to IANA ID 2013-11-21 09:25:23 +01:00
qtimezoneprivate.cpp QTimeZone - Change from Olson ID to IANA ID 2014-01-11 17:23:25 +01:00
qtimezoneprivate_data_p.h Update the time zones database from CLDR v.24 2014-01-13 19:02:10 +01:00
qtimezoneprivate_icu.cpp QTimeZone - Change from Olson ID to IANA ID 2014-01-11 17:23:25 +01:00
qtimezoneprivate_mac.mm Fix double release in QTimeZone on Mac 2014-03-19 01:01:38 +01:00
qtimezoneprivate_p.h QTimeZone - Change from Olson ID to IANA ID 2014-01-11 17:23:25 +01:00
qtimezoneprivate_tz.cpp QTimeZone - Change from Olson ID to IANA ID 2014-01-11 17:23:25 +01:00
qtimezoneprivate_win.cpp QTimeZone - Change from Olson ID to IANA ID 2014-01-11 17:23:25 +01:00
qtools_p.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qunicodetables.cpp Regenerate the Unicode tables 2014-01-29 23:19:55 +01:00
qunicodetables_p.h Regenerate the Unicode tables 2014-01-29 23:19:55 +01:00
qunicodetools.cpp Update the Unicode Data and Algorithms up to Unicode 6.3.0 2014-01-14 15:38:57 +01:00
qunicodetools_p.h Remove Q_PACKED from structures that do not need to be packed 2013-09-13 11:47:06 +02:00
qvarlengtharray.h Add QVarLengthArray::{indexOf,lastIndexOf,contains} functions 2014-01-09 17:42:22 +01:00
qvarlengtharray.qdoc Doc: correction link, example and parameter issues qtbase 2014-03-10 16:02:19 +01:00
qvector.cpp Doc: correction link, example and parameter issues qtbase 2014-03-10 16:02:19 +01:00
qvector.h Remove level 4 compiler warnings from MSVC. 2014-03-15 10:46:17 +01:00
qvector_msvc.cpp Work around a binary incompatibility in MSVC 2014-01-23 18:36:33 +01:00
qvsnprintf.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
tools.pri Revert the QByteArrayList addition to Qt 5.3 2014-03-08 00:21:53 +01:00