Skip to content
Snippets Groups Projects
Commit ca5f1ee2 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

remove seemingly superfluous path normalizations

they were added to facilitate .prf exclusion from the project tree, but
that should be handled differently already.
parent b9721774
No related branches found
No related tags found
No related merge requests found
...@@ -52,23 +52,21 @@ void ProFileReader::setQtVersion(QtVersion *qtVersion) { ...@@ -52,23 +52,21 @@ void ProFileReader::setQtVersion(QtVersion *qtVersion) {
bool ProFileReader::readProFile(const QString &fileName) bool ProFileReader::readProFile(const QString &fileName)
{ {
//disable caching -> list of include files is not updated otherwise //disable caching -> list of include files is not updated otherwise
QString fn = QFileInfo(fileName).filePath(); ProFile *pro = new ProFile(fileName);
ProFile *pro = new ProFile(fn);
if (!queryProFile(pro)) { if (!queryProFile(pro)) {
delete pro; delete pro;
return false; return false;
} }
m_includeFiles.insert(fn, pro); m_includeFiles.insert(fileName, pro);
m_proFiles.append(pro); m_proFiles.append(pro);
return accept(pro); return accept(pro);
} }
ProFile *ProFileReader::parsedProFile(const QString &fileName) ProFile *ProFileReader::parsedProFile(const QString &fileName)
{ {
QString fn = QFileInfo(fileName).filePath(); ProFile *pro = ProFileEvaluator::parsedProFile(fileName);
ProFile *pro = ProFileEvaluator::parsedProFile(fn);
if (pro) { if (pro) {
m_includeFiles.insert(fn, pro); m_includeFiles.insert(fileName, pro);
m_proFiles.append(pro); m_proFiles.append(pro);
} }
return pro; return pro;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment