QFile: Fix a pre-mature pessimization
commitc7b3f408f772d565666910cb4495a7057796b648
authorJoão Abecasis <joao@trolltech.com>
Wed, 13 Jan 2010 17:03:52 +0000 (13 18:03 +0100)
committerJoão Abecasis <joao@trolltech.com>
Mon, 18 Jan 2010 14:17:26 +0000 (18 15:17 +0100)
treef0a794f084b40b9ba33241dbd095bac4bb8ba1ef
parent2f6459ff25a59e913b5695dcd8919ead8d58947c
QFile: Fix a pre-mature pessimization

Don't repeatedly call the fileEngine virtual function. Instead re-use
the private data member if we know it has been filled.

Reviewed-by: Markus Goetz
src/corelib/io/qfile.cpp