forked from qt-creator/qt-creator
Utils: Rename FilePathList to simply FilePaths
The exact storage type does not really matter here. Change-Id: Iefec40f0f5909c8e7ba3415db4a11962694e1b38 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -851,7 +851,7 @@ QList<Snapshot::IncludeLocation> Snapshot::includeLocationsOfDocument(const QStr
|
||||
return result;
|
||||
}
|
||||
|
||||
Utils::FilePathList Snapshot::filesDependingOn(const Utils::FilePath &fileName) const
|
||||
Utils::FilePaths Snapshot::filesDependingOn(const Utils::FilePath &fileName) const
|
||||
{
|
||||
updateDependencyTable();
|
||||
return m_deps.filesDependingOn(fileName);
|
||||
|
||||
@@ -442,8 +442,8 @@ public:
|
||||
QSet<QString> allIncludesForDocument(const QString &fileName) const;
|
||||
QList<IncludeLocation> includeLocationsOfDocument(const QString &fileName) const;
|
||||
|
||||
Utils::FilePathList filesDependingOn(const Utils::FilePath &fileName) const;
|
||||
Utils::FilePathList filesDependingOn(const QString &fileName) const
|
||||
Utils::FilePaths filesDependingOn(const Utils::FilePath &fileName) const;
|
||||
Utils::FilePaths filesDependingOn(const QString &fileName) const
|
||||
{ return filesDependingOn(Utils::FilePath::fromString(fileName)); }
|
||||
void updateDependencyTable() const;
|
||||
|
||||
|
||||
@@ -29,9 +29,9 @@
|
||||
|
||||
using namespace CPlusPlus;
|
||||
|
||||
Utils::FilePathList DependencyTable::filesDependingOn(const Utils::FilePath &fileName) const
|
||||
Utils::FilePaths DependencyTable::filesDependingOn(const Utils::FilePath &fileName) const
|
||||
{
|
||||
Utils::FilePathList deps;
|
||||
Utils::FilePaths deps;
|
||||
|
||||
int index = fileIndex.value(fileName, -1);
|
||||
if (index == -1)
|
||||
|
||||
@@ -44,7 +44,7 @@ class CPLUSPLUS_EXPORT DependencyTable
|
||||
private:
|
||||
friend class Snapshot;
|
||||
void build(const Snapshot &snapshot);
|
||||
Utils::FilePathList filesDependingOn(const Utils::FilePath &fileName) const;
|
||||
Utils::FilePaths filesDependingOn(const Utils::FilePath &fileName) const;
|
||||
|
||||
QVector<Utils::FilePath> files;
|
||||
QHash<Utils::FilePath, int> fileIndex;
|
||||
|
||||
Reference in New Issue
Block a user