diff options
author | João Abecasis <joao.abecasis@nokia.com> | 2010-08-26 11:49:31 (GMT) |
---|---|---|
committer | João Abecasis <joao.abecasis@nokia.com> | 2010-08-27 13:47:26 (GMT) |
commit | fdec31a2e57c7da48be741c14bedaaff4b95e7af (patch) | |
tree | 212f88c185e9af1bb20f9c9b363166e167c4d5a8 /src/openvg | |
parent | 1b201e0857d8232eeb1c25942c4fad9360cc11c3 (diff) | |
download | Qt-fdec31a2e57c7da48be741c14bedaaff4b95e7af.zip Qt-fdec31a2e57c7da48be741c14bedaaff4b95e7af.tar.gz Qt-fdec31a2e57c7da48be741c14bedaaff4b95e7af.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 'src/openvg')
0 files changed, 0 insertions, 0 deletions