summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qnamespace.qdoc
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2017-04-20 15:43:01 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2017-05-05 12:28:45 +0000
commit37274744212216f8792c2220faaebfb1e40d1327 (patch)
tree5f1eedc56421ec3ab5678b0180284533ac0ed98e /src/corelib/global/qnamespace.qdoc
parentdbd55cdaf367bdc9d6774bcb9927cbe19f18065f (diff)
Prevent 2 unnecessary QString allocations for QString::number(0u)
QLocaleData::unsLongLongToString uses qulltoa, which will allocate a zero-length QArrayData. Then with padding a single 0 was put in a QString, which gets prepended to the result. By taking care of this special case, we can now also fast-path the common case where base=10 and no flags nor precision was provided. Change-Id: Ia893b0ea4c77634c24e7cef5aafb06d0ef44c507 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qnamespace.qdoc')
0 files changed, 0 insertions, 0 deletions