diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-01-16 18:01:11 -0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-18 04:39:23 +0100 |
commit | 5fcee880975c0ee9e373b097209882fbd30add0b (patch) | |
tree | 7ea64243e3d9fffbaafbd827f192bfac8488e84b /src/plugins/platforms/qnx/qqnxwindow.cpp | |
parent | 556c3209e2067664d6774ac049000d2aa05f5d85 (diff) |
Abuse const_cast in QStringBuilder to get a little more performance
Without this const_cast, the call to QString::data() or
QByteArray::data() will cause a call to detach(), which is totally
unnecessary since we've just allocated data a couple of lines before.
Since we know we're the owner of the only reference, we can skip the
detach attempt.
Change-Id: If40f66100f85cc9b405025f21c562828ead23475
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxwindow.cpp')
0 files changed, 0 insertions, 0 deletions