forked from qt-creator/qt-creator
ProjectExplorer: Remove HeaderPath::isValid and related code
HeaderPath with an Null path are invalid, there is no need to have a special type for that. Change-Id: Ied102fbe523a8cf17e8b385ee89b099517a6d598 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -301,7 +301,7 @@ QString CppSourceProcessor::resolveFile_helper(const QString &fileName,
|
||||
auto headerPathsEnd = m_headerPaths.end();
|
||||
const int index = fileName.indexOf(QLatin1Char('/'));
|
||||
for (; headerPathsIt != headerPathsEnd; ++headerPathsIt) {
|
||||
if (headerPathsIt->isValid()) {
|
||||
if (!headerPathsIt->path.isNull()) {
|
||||
QString path;
|
||||
if (headerPathsIt->isFrameworkPath()) {
|
||||
if (index == -1)
|
||||
|
||||
Reference in New Issue
Block a user