diff -r 93b982ccede2 -r 5daf16870df6 tools/qdoc3/qscodeparser.cpp --- a/tools/qdoc3/qscodeparser.cpp Mon Jun 21 22:38:13 2010 +0100 +++ b/tools/qdoc3/qscodeparser.cpp Thu Jul 22 16:41:55 2010 +0100 @@ -151,8 +151,8 @@ { qsTre = tree; - FILE *in = fopen(QFile::encodeName(filePath), "r"); - if (in == 0) { + QFile in(filePath); + if (!in.open(QIODevice::ReadOnly)) { location.error(tr("Cannot open Qt Script class list '%1'") .arg(filePath)); return; @@ -175,7 +175,7 @@ } tok = fileTokenizer.getToken(); } - fclose(in); + in.close(); } void QsCodeParser::parseSourceFile(const Location& location,