forked from qt-creator/qt-creator
micro-optimizations
This commit is contained in:
@@ -522,9 +522,9 @@ void Qt4PriFileNode::update(ProFile *includeFileExact, ProFileReader *readerExac
|
|||||||
newFilePaths += readerCumulative->absoluteFileValues(qmakeVariable, projectDir, vPathsCumulative, includeFileCumlative);
|
newFilePaths += readerCumulative->absoluteFileValues(qmakeVariable, projectDir, vPathsCumulative, includeFileCumlative);
|
||||||
|
|
||||||
}
|
}
|
||||||
newFilePaths.removeDuplicates();
|
|
||||||
|
|
||||||
if (!newFilePaths.isEmpty()) {
|
if (!newFilePaths.isEmpty()) {
|
||||||
|
newFilePaths.removeDuplicates();
|
||||||
InternalNode *subfolder = new InternalNode;
|
InternalNode *subfolder = new InternalNode;
|
||||||
subfolder->type = type;
|
subfolder->type = type;
|
||||||
subfolder->icon = fileTypes.at(i).icon;
|
subfolder->icon = fileTypes.at(i).icon;
|
||||||
@@ -1444,14 +1444,14 @@ QStringList Qt4ProFileNode::subDirsPaths(ProFileReader *reader) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (QFile::exists(realFile)) {
|
if (QFile::exists(realFile)) {
|
||||||
if (!subProjectPaths.contains(realFile))
|
subProjectPaths << realFile;
|
||||||
subProjectPaths << realFile;
|
|
||||||
} else {
|
} else {
|
||||||
m_project->proFileParseError(tr("Could not find .pro file for sub dir '%1' in '%2'")
|
m_project->proFileParseError(tr("Could not find .pro file for sub dir '%1' in '%2'")
|
||||||
.arg(subDirVar).arg(realDir));
|
.arg(subDirVar).arg(realDir));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
subProjectPaths.removeDuplicates();
|
||||||
return subProjectPaths;
|
return subProjectPaths;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2468,7 +2468,7 @@ ProItem::ProItemReturn ProFileEvaluator::Private::evaluateConditionalFunction(
|
|||||||
#endif
|
#endif
|
||||||
case T_EVAL: {
|
case T_EVAL: {
|
||||||
ProBlock *pro = new ProBlock();
|
ProBlock *pro = new ProBlock();
|
||||||
QString buf = args.join(QLatin1String(" "));
|
QString buf = args.join(statics.field_sep);
|
||||||
if (!readInternal(pro, buf, (ushort*)buf.data())) {
|
if (!readInternal(pro, buf, (ushort*)buf.data())) {
|
||||||
delete pro;
|
delete pro;
|
||||||
return ProItem::ReturnFalse;
|
return ProItem::ReturnFalse;
|
||||||
|
|||||||
Reference in New Issue
Block a user