summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_sql_kernel_qsqlindex.cpp
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2010-08-26 11:49:31 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2010-09-07 12:17:04 (GMT)
commit4c88ffbbf0de319bcb4aef54be3997bb41a08100 (patch)
tree81d7a20ee0132babb684e60d0119a0c8e99ba01e /doc/src/snippets/code/src_sql_kernel_qsqlindex.cpp
parentc3c30e16a2bb5ab9236946aa6c48ca02ef2afa08 (diff)
downloadQt-4c88ffbbf0de319bcb4aef54be3997bb41a08100.zip
Qt-4c88ffbbf0de319bcb4aef54be3997bb41a08100.tar.gz
Qt-4c88ffbbf0de319bcb4aef54be3997bb41a08100.tar.bz2
QDir::makeAbsolute could self-destruct on failure
makeAbsolute would return false if the newly constructed file engine reported it wasn't referencing a directory. At this point, the private data has already been updated, rendering the instance unusable. Instead, we now create a separate QDir instance and reset our private data only on success. Similarly to what's done in QDir::cd. Reviewed-by: Prasanth Ullattil
Diffstat (limited to 'doc/src/snippets/code/src_sql_kernel_qsqlindex.cpp')
0 files changed, 0 insertions, 0 deletions