summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfsfileengine.cpp
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2010-08-31 11:17:15 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2010-08-31 16:27:55 (GMT)
commit5e1196c2c98b5331c0ccdbfa2aea26b35fb4a3c1 (patch)
tree70ef8987415959657fac453998eb85fded05fc35 /src/corelib/io/qfsfileengine.cpp
parentc14c0a61bbd8466b00f5600707bc0aedbbf260af (diff)
downloadQt-5e1196c2c98b5331c0ccdbfa2aea26b35fb4a3c1.zip
Qt-5e1196c2c98b5331c0ccdbfa2aea26b35fb4a3c1.tar.gz
Qt-5e1196c2c98b5331c0ccdbfa2aea26b35fb4a3c1.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/corelib/io/qfsfileengine.cpp')
0 files changed, 0 insertions, 0 deletions