Commit e2de8371 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

qmake: let QMakeVfs::readFile() report ENOFILE explicitly


when the QFile object is already constructed, querying whether the file
exists is actually cheap, so do it right away instead of later on
demand. that makes the calling code a bit cleaner.

fwiw, that we need to explicitly query the file's existence at all is a
result of QFile's completely useless error "codes" (which merely say
which function failed, as if the caller would not know).

Change-Id: Ifec39d05b1713d8128046f679287e510f10e45dc
Reviewed-by: default avatarTobias Hunger <tobias.hunger@qt.io>
(cherry picked from qtcreator/5ba32e3484ead2e35cc7732dcd59a97e7459dbfd)
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@qt.io>
parent fe5f2a23
Showing with 21 additions and 17 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment