|author||Jędrzej Nowacki <email@example.com>||2014-02-14 16:32:31 +0100|
|committer||The Qt Project <firstname.lastname@example.org>||2014-05-16 09:51:38 +0200|
Unify all mid() functions in QtBase.
Up to now, Qt had at least 3 different implementations of the mid(). Only QString::mid implementation was not crashing on edge cases and was protected against overflows, therefore I picked that one as the base implementation, even if it has weird semantics for an invalid input. As a side effect QVector::mid was slightly optimized to not detach in all cases (which follows current QList behavior). Documentation of QVector::mid and QList::mid was updated to not mention "copy of data" which could suggest that the mid() result is detached. QStringRef::mid was fixed and now it follows general Qt behavior, by returning a null value for a null input. Change-Id: Ie9ff5d98372bd193d66508e6dd92b6ed1180ad9b Reviewed-by: Thiago Macieira <email@example.com>
Diffstat (limited to 'src/gui/math3d/qmatrix4x4.h')
0 files changed, 0 insertions, 0 deletions