diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2011-06-09 17:34:14 +0200 |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2011-06-09 17:34:14 +0200 |
commit | 628fd7d141013dcda06d13fa644f44029f317a8c (patch) | |
tree | 7c75dd78750ecf1d876b6dcedf4a52a354750eee /doc/src/snippets/code/src_sql_kernel_qsqldatabase.cpp | |
parent | bf540659718c78706622a6cf168387998dd725fd (diff) | |
download | qt4-tools-628fd7d141013dcda06d13fa644f44029f317a8c.tar.gz |
get rid of extra copying (another one)
in the static toCFStringRef(const QString &string) method, the string's lifecycle
is unkown and thus, to ensure the data consistency, it copies the string's data
to the newly created CFStringRef object.
but operator CFStringRef() is an other case - here we know that the source string's
lifetime is limited by the same QCFString object as the resulting CFStringRef;
so, we could use the string's internal buffer as a CFStringRef's one w/o any
visible changes (well, except of some speed-up :) )
Merge-request: 2615
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
Diffstat (limited to 'doc/src/snippets/code/src_sql_kernel_qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions