equal
deleted
inserted
replaced
68 |
68 |
69 void QsaKernelParser::parseSourceFile( const Location& location, |
69 void QsaKernelParser::parseSourceFile( const Location& location, |
70 const QString& filePath, |
70 const QString& filePath, |
71 Tree * /* tree */ ) |
71 Tree * /* tree */ ) |
72 { |
72 { |
73 FILE *in = fopen( QFile::encodeName(filePath), "r" ); |
73 QFile in(filePath); |
74 if ( in == 0 ) { |
74 if (!in.open(QIODevice::ReadOnly)) { |
75 location.error( tr("Cannot open QSA kernel file '%1'").arg(filePath) ); |
75 location.error( tr("Cannot open QSA kernel file '%1'").arg(filePath) ); |
76 return; |
76 return; |
77 } |
77 } |
78 |
78 |
79 Location fileLocation( filePath ); |
79 Location fileLocation( filePath ); |
169 } |
169 } |
170 } else { |
170 } else { |
171 readToken(); |
171 readToken(); |
172 } |
172 } |
173 } |
173 } |
174 fclose( in ); |
174 in.close(); |
175 } |
175 } |
176 |
176 |
177 void QsaKernelParser::doneParsingSourceFiles( Tree * /* tree */ ) |
177 void QsaKernelParser::doneParsingSourceFiles( Tree * /* tree */ ) |
178 { |
178 { |
179 } |
179 } |