summaryrefslogtreecommitdiff
path: root/doc/src/snippets/code/src_sql_kernel_qsqldatabase.cpp
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2011-06-09 17:34:16 +0200
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2011-06-09 17:34:16 +0200
commit292a953258cac0107b820490b09231c0f700bdbe (patch)
treeebcab1e6d4245bc393156053ec4e9c03b2b29b2e /doc/src/snippets/code/src_sql_kernel_qsqldatabase.cpp
parent628fd7d141013dcda06d13fa644f44029f317a8c (diff)
downloadqt4-tools-292a953258cac0107b820490b09231c0f700bdbe.tar.gz
make the previous change foolproof
in order to preserve the old behavior in a (corner) case where string was created from the raw data with a shorter lifecycle, just call QString's realloc() that will copy the data and thus guarantee it's consistence later. example: QCFString str; { QString qstr("I'm stupid"); str = QCFString(QString::fromRawData(qstr.data(), qstr.size()); } 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