summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qsimpledrag.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-10-15 03:36:22 +0200
committerMarc Mutz <marc.mutz@kdab.com>2015-10-23 05:51:00 +0000
commit8515aa18716779985a5955292524fd683528c576 (patch)
tree35a1312c967a5ffcdc4e8f02c1f3afee5bb637a9 /src/gui/kernel/qsimpledrag.cpp
parentbe926e412c9c4ec9ee77b49dbe370fbb5451f0e1 (diff)
QTextStream: optimize streaming of QLatin1String and const char*
Instead of converting the QLatin1String to a QString at the first opportunity, keep it around until it is appended to one of the internal QStrings in write(). Avoids a memory allocation per QLatin1String / const char* streamed. Change-Id: Id973a9b743e5a6696defbc4ef4ed2db1ef54e9cc Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/kernel/qsimpledrag.cpp')
0 files changed, 0 insertions, 0 deletions