Core: Use FilePath in IDocumentFactory::open()

Change-Id: I369f3bba2e0d1d33fed3a29f3c1408429cc7d8f8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-07-23 11:15:18 +02:00
parent 124909c802
commit 64c9384cb8
5 changed files with 17 additions and 12 deletions

View File

@@ -46,10 +46,10 @@ const QList<IDocumentFactory *> IDocumentFactory::allDocumentFactories()
return g_documentFactories;
}
IDocument *IDocumentFactory::open(const QString &filename)
IDocument *IDocumentFactory::open(const Utils::FilePath &filePath)
{
QTC_ASSERT(m_opener, return nullptr);
return m_opener(filename);
return m_opener(filePath);
}
} // namespace Core