diff options
author | João Abecasis <joao.abecasis@nokia.com> | 2010-08-31 11:17:15 (GMT) |
---|---|---|
committer | João Abecasis <joao.abecasis@nokia.com> | 2010-09-07 12:17:11 (GMT) |
commit | 3505c6cdcdfac5a6d0f4b94dbdbcc8ad72f8048a (patch) | |
tree | c2c93f0df90882122f7fde5ac07683f7f7a8b4f0 /src/gui/text | |
parent | b0de175aab06092932077eb1c5fb3f89691b6014 (diff) | |
download | Qt-3505c6cdcdfac5a6d0f4b94dbdbcc8ad72f8048a.zip Qt-3505c6cdcdfac5a6d0f4b94dbdbcc8ad72f8048a.tar.gz Qt-3505c6cdcdfac5a6d0f4b94dbdbcc8ad72f8048a.tar.bz2 |
QDir: Removed checks for existance of fileEngine
Directly or indirectly, all instances of QDir call QDirPrivate::setPath,
which allocates a file engine and dereferences it. Any failures there
should already lead to a crash or a bad_alloc exception being thrown in
case of failure.
Given that, QDir may be (and was) broken when compiling Qt with
QT_NO_FSFILEENGINE, if no custom file engine and handler are provided.
This being the case, it's pointless to check fileEngine for null all
over the place. This simplifies the code and should allow for easier
transition to file-engine-less implementation.
Reviewed-by: Thomas Zander
Diffstat (limited to 'src/gui/text')
0 files changed, 0 insertions, 0 deletions