summaryrefslogtreecommitdiff
path: root/src/sql/drivers/mysql/qsql_mysql.cpp
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2012-02-16 23:27:44 +0100
committerQt by Nokia <qt-info@nokia.com>2012-04-02 16:34:21 +0200
commit15e3ae6b9da9b32236d3e3348ede86c3acf06fb4 (patch)
tree20e674797a075c94b1319a0547233595b26fa34d /src/sql/drivers/mysql/qsql_mysql.cpp
parent8c413f3eff2de761ae038294195831de753b9252 (diff)
downloadqtbase-15e3ae6b9da9b32236d3e3348ede86c3acf06fb4.tar.gz
Introduce QArrayDataOps::truncate
This enables a truncating resize() to be implemented. It is similar to destroyAll(), but updates the size() as it goes, so it is safe to use outside a container's destructor (and doesn't necessarily destroy all elements). The appendInitialize test was repurposed and now doubles as an additional test for QArrayDataOps as well as exercising SimpleVector's resize(). Change-Id: Iee94a685c9ea436c6af5b1b77486734a38c49ca1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/sql/drivers/mysql/qsql_mysql.cpp')
0 files changed, 0 insertions, 0 deletions