forked from qt-creator/qt-creator
Utils: Rename FileName to FilePath
More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -1973,16 +1973,16 @@ void AddIncludeForUndefinedIdentifier::match(const CppQuickFixInterface &interfa
|
||||
|
||||
Snapshot localForwardHeaders = forwardHeaders;
|
||||
localForwardHeaders.insert(interface.snapshot().document(info->fileName()));
|
||||
Utils::FileNameList headerAndItsForwardingHeaders;
|
||||
headerAndItsForwardingHeaders << Utils::FileName::fromString(info->fileName());
|
||||
Utils::FilePathList headerAndItsForwardingHeaders;
|
||||
headerAndItsForwardingHeaders << Utils::FilePath::fromString(info->fileName());
|
||||
headerAndItsForwardingHeaders += localForwardHeaders.filesDependingOn(info->fileName());
|
||||
|
||||
foreach (const Utils::FileName &header, headerAndItsForwardingHeaders) {
|
||||
foreach (const Utils::FilePath &header, headerAndItsForwardingHeaders) {
|
||||
const QString include = findShortestInclude(currentDocumentFilePath,
|
||||
header.toString(),
|
||||
headerPaths);
|
||||
if (include.size() > 2) {
|
||||
const QString headerFileName = Utils::FileName::fromString(info->fileName()).fileName();
|
||||
const QString headerFileName = Utils::FilePath::fromString(info->fileName()).fileName();
|
||||
QTC_ASSERT(!headerFileName.isEmpty(), break);
|
||||
|
||||
int priority = 0;
|
||||
|
||||
Reference in New Issue
Block a user