Optimize QDateTime string parsing
authorJędrzej Nowacki <jedrzej.nowacki@digia.com>
Thu, 12 Sep 2013 12:18:45 +0000 (12:18 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 17 Jan 2014 00:36:35 +0000 (01:36 +0100)
commit39262323d32306fb8f3bd0f5543b406a786c088e
tree767758ec056d581b374654858f03d87400c7f5f6
parent7c8131763de9e70ca56f16635716e7e00559b5d1
Optimize QDateTime string parsing

The patch reduces amount of allocations during
string parsing by using QStringRef. The operation
is safe as neither QDate nor QTime uses QString as
a storage type

Change-Id: Ib9f40d86e8e420653ac4fe8ba883d554331ffc32
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qdatetime.cpp