Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.4.1
-
None
Description
Present documentation on QByteArray::resize (and QByteArray::reserve) doesn't say anything what will happen when resize request cannot be satisfied.
At the moment std::bad_allocation is thrown, see sample program is on GitHub:
svn co https://github.com/kocherovms/develorium.com/trunk/qbytearray_resize
Taking into account that exceptions are not widely adopted in Qt this is somewhat surpisingly. Also there is no guarantee that this won't change in future versions of Qt.