diff options
author | Martin Smith <msmith@trolltech.com> | 2010-02-11 10:33:15 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2010-02-11 10:33:15 (GMT) |
commit | fe7f5f8a183099b8503bb25d69fe5939014e0009 (patch) | |
tree | 7a6edfd7b0ce36387ca5d969654a2c92c53061ce /tools/qdoc3/qsakernelparser.cpp | |
parent | 802051dd1eb8dd63e84ac0c241f560d8cdf350c5 (diff) | |
parent | f7c910a9d44eb7f775f93fd8ccf94c3e8fd38201 (diff) | |
download | Qt-fe7f5f8a183099b8503bb25d69fe5939014e0009.zip Qt-fe7f5f8a183099b8503bb25d69fe5939014e0009.tar.gz Qt-fe7f5f8a183099b8503bb25d69fe5939014e0009.tar.bz2 |
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1
Diffstat (limited to 'tools/qdoc3/qsakernelparser.cpp')
-rw-r--r-- | tools/qdoc3/qsakernelparser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/qdoc3/qsakernelparser.cpp b/tools/qdoc3/qsakernelparser.cpp index 9320a17..8f12eda 100644 --- a/tools/qdoc3/qsakernelparser.cpp +++ b/tools/qdoc3/qsakernelparser.cpp @@ -70,8 +70,8 @@ void QsaKernelParser::parseSourceFile( const Location& location, const QString& filePath, Tree * /* tree */ ) { - FILE *in = fopen( QFile::encodeName(filePath), "r" ); - if ( in == 0 ) { + QFile in(filePath); + if (!in.open(QIODevice::ReadOnly)) { location.error( tr("Cannot open QSA kernel file '%1'").arg(filePath) ); return; } @@ -171,7 +171,7 @@ void QsaKernelParser::parseSourceFile( const Location& location, readToken(); } } - fclose( in ); + in.close(); } void QsaKernelParser::doneParsingSourceFiles( Tree * /* tree */ ) |